1
1
---
2
- title : 1.7 Optional Exercises for Section 1
2
+ title : 1.7 Optional Exercises
3
3
start : no
4
4
teaching : 0
5
5
exercises : 45
@@ -13,23 +13,25 @@ exercises: 45
13
13
14
14
:::::::::::::::::::::::::::::::::::::::: questions
15
15
16
- - How can I further finetune my coding environment?
16
+ - How can I further fine-tune my coding environment?
17
17
18
18
::::::::::::::::::::::::::::::::::::::::::::::::::
19
19
20
- This episode holds some optional exercises for section 1.
20
+ This episode has some optional exercises for Section 1.
21
21
The exercises have an explorative nature, so feel free to go off in any direction that interests you.
22
22
You will be looking at some tools that either complement or are alternatives to those already introduced.
23
23
Even if you find something that you really like,
24
- we still recommend sticking with the tools that were introduced prior to this episode when you move onto other sections of the course.
24
+ for the sake of following through with the course, we still recommend sticking with the tools that we introduced prior to this episode
25
+ and then switching to something else afterwards.
25
26
26
- ::::::::::::::::::::::::::::::::::::::: challenge
27
+ ::::::::::::::::::::::::::::::::::::::: discussion
27
28
28
29
## Exercise: Apply to your own project(s)
29
30
30
31
Apply what you learned in this section to your own project(s).
31
- This is the time to ask any questions to your instructors or helpers.
32
- Everyone has different preferences for tooling, so getting the input of experienced developers is a great opportunity.
32
+ This is the time to ask any questions of your instructors, helpers or fellow learners.
33
+ Everyone has different preferences for tooling, so getting input from experienced developers is a great opportunity to learn new things
34
+ or different perspectives.
33
35
34
36
::::::::::::::::::::::::::::::::::::::::::::::::::
35
37
@@ -40,17 +42,17 @@ Everyone has different preferences for tooling, so getting the input of experien
40
42
Install different Integrated Development Environments (IDEs) and test them out.
41
43
Which one do you like the most and why?
42
44
43
- You can try:
45
+ Some suggestions to try:
44
46
45
47
- [ Visual Studio Code] ( https://code.visualstudio.com/ ) , with setup instructions [ in the Extras of this course] ( ../learners/vscode.md )
46
48
- [ Atom] ( https://atom-editor.cc/ )
47
49
- [ Sublime Text] ( https://www.sublimetext.com/ )
48
50
- [ RStudio] ( https://posit.co/download/rstudio-desktop/ )
49
51
50
- Technically, compared to PyCharm, the 'IDEs' listed above are source code editors capable of functioning as an IDE
51
- (with RStudio as an example).
52
- To function as an IDE, you have to manually install plugins for more powerful features
52
+ When compared to PyCharm, the IDEs listed above are advanced source code editors capable of functioning as IDEs.
53
+ To function as an IDE, you have to manually install plugins for these tools to obtain more advanced features -
53
54
such as support for a specific programming language or unit testing.
55
+
54
56
What do you prefer, a lot of tooling out of the box or a lightweight editor with optional extensions?
55
57
56
58
If you want an even more lightweight setup you can try out these configurable source code editors:
@@ -62,28 +64,27 @@ If you want an even more lightweight setup you can try out these configurable so
62
64
63
65
::::::::::::::::::::::::::::::::::::::: challenge
64
66
65
- ## Exercise: Customize the command line
67
+ ## Exercise: Customise the command line tool
66
68
67
- You can customize the command line or use alternatives to ` bash ` to make yourself more productive.
69
+ You can customise the command line tool or use alternatives to ` bash ` , such as:
68
70
69
- - Try out [ Bash Prompt Generator] ( https://bash-prompt-generator.org/ ) , it lets you try out different prompts,
71
+ - [ Bash Prompt Generator] ( https://bash-prompt-generator.org/ ) - it lets you try out different prompts,
70
72
depending on the information you want displayed.
71
- - Try out [ z, a simple tool to more quickly move around directories] ( https://github.com/rupa/z ) .
72
- - Try out [ Z shell (zsh)] ( https://zsh.sourceforge.io/ ) , a shell designed for interactive use.
73
- - Try out [ Oh My ZSH] ( https://ohmyz.sh/ ) , which is a theming and package manager of the ` zsh ` terminal.
74
- - Try out [ fish] ( https://fishshell.com/ ) , a smart and user-friendly command line shell.
73
+ - [ z, a simple tool to more quickly move around directories] ( https://github.com/rupa/z ) .
74
+ - [ Z shell (zsh)] ( https://zsh.sourceforge.io/ ) , a shell designed for interactive use.
75
+ - [ Oh My ZSH] ( https://ohmyz.sh/ ) , which is a theming and package manager of the ` zsh ` terminal.
76
+ - [ fish] ( https://fishshell.com/ ) , a smart and user-friendly command line shell.
75
77
76
78
::::::::::::::::::::::::::::::::::::::::::::::::::
77
79
78
80
::::::::::::::::::::::::::::::::::::::: challenge
79
81
80
82
## Exercise: Try out different virtual environment managers
81
83
82
- So far we used ` venv ` , but there are other virtual environment managers for Python:
84
+ So far we have used ` venv ` , but there are other virtual environment managers for Python:
83
85
84
- - [ Poetry] ( https://python-poetry.org/ ) , which we will explore using in
85
- [ Section 4] ( 43-software-release.md ) .
86
- - conda, which is part of [ Anaconda Distribution)] ( https://www.anaconda.com/download ) .
86
+ - [ Poetry] ( https://python-poetry.org/ ) , which we will explore using in [ Section 4] ( 43-software-release.md ) .
87
+ - ` conda ` , which is part of [ Anaconda Distribution] ( https://www.anaconda.com/download ) .
87
88
88
89
Anaconda is widely used in academia, but the current license does not allow use for research in most circumstances.
89
90
An open-source alternative is [ mini-forge] ( https://github.com/conda-forge/miniforge ) .
@@ -92,11 +93,11 @@ An open-source alternative is [mini-forge](https://github.com/conda-forge/minifo
92
93
93
94
::::::::::::::::::::::::::::::::::::::: challenge
94
95
95
- ## Exercise: Customize ` pylint `
96
+ ## Exercise: Customise ` pylint `
97
+
98
+ Tell ` pylint ` to accept the maximum line length of 100 characters instead of the default 80.
96
99
97
- You decide to change the max line length of your project to 100 instead of the default 80.
98
- Find out how you can configure pylint. You can first try to use the pylint command line interface,
99
- but also play with adding a configuration file that pylint reads in.
100
+ Hint: find out different ways in which you can configure ` pylint ` (e.g. via ` pylint ` command line interface or its configuration file).
100
101
101
102
::::::::::::::: solution
102
103
@@ -108,7 +109,7 @@ Specify the max line length as an argument: `pylint --max-line-length=100`
108
109
109
110
### Using a configuration file
110
111
111
- You can create a file ` .pylintrc ` in the root of your project folder to overwrite pylint settings:
112
+ You can create a file ` .pylintrc ` in the root of your project folder to overwrite ` pylint ` settings:
112
113
113
114
```
114
115
[FORMAT]
0 commit comments