Theoretical exercises:
Practical exercises:
The solutions are available.
Ideas for your own projects:
- Write unit tests for the functions in your code
- Update your code to inject dependencies (e.g an HTTP client), so you can test your modules
- The next time you encounter a bug, start by writing a regression test that reproduces that bug.
- Try test-driven development for your next feature addition