1.7 Optional Exercises for Section 1
Last updated on 2024-12-06 | Edit this page
Estimated time: 45 minutes
Overview
Questions
- How can I further finetune my coding environment?
Objectives
- Explore different options for your coding environment.
This episode holds some optional exercises for section 1. The exercises have an explorative nature, so feel free to go off in any direction that interests you. You will be looking at some tools that either complement or are alternatives to those already introduced. Even if you find something that you really like, we still recommend sticking with the tools that were introduced prior to this episode when you move onto other sections of the course.
Exercise: Apply to your own project(s)
Apply what you learned in this section to your own project(s). This is the time to ask any questions to your instructors or helpers. Everyone has different preferences for tooling, so getting the input of experienced developers is a great opportunity.
Exercise: Try out different Integrated Development Environments
Install different Integrated Development Environments (IDEs) and test them out. Which one do you like the most and why?
You can try:
- Visual Studio Code, with setup instructions in the Extras of this course
- Atom
- Sublime Text
- RStudio
Technically, compared to PyCharm, the ‘IDEs’ listed above are source code editors capable of functioning as an IDE (with RStudio as an example). To function as an IDE, you have to manually install plugins for more powerful features such as support for a specific programming language or unit testing. What do you prefer, a lot of tooling out of the box or a lightweight editor with optional extensions?
If you want an even more lightweight setup you can try out these configurable source code editors:
Exercise: Customize the command line
You can customize the command line or use alternatives to
bash
to make yourself more productive.
- Try out Bash Prompt Generator, it lets you try out different prompts, depending on the information you want displayed.
- Try out z, a simple tool to more quickly move around directories.
- Try out Z shell (zsh), a shell designed for interactive use.
- Try out Oh My ZSH, which is a
theming and package manager of the
zsh
terminal. - Try out fish, a smart and user-friendly command line shell.
Exercise: Try out different virtual environment managers
So far we used venv
, but there are other virtual
environment managers for Python:
- Poetry, which we will explore using in Section 4.
- conda, which is part of Anaconda Distribution).
Anaconda is widely used in academia, but the current license does not allow use for research in most circumstances. An open-source alternative is mini-forge.
Exercise: Customize pylint
You decide to change the max line length of your project to 100 instead of the default 80. Find out how you can configure pylint. You can first try to use the pylint command line interface, but also play with adding a configuration file that pylint reads in.