November 2021
Intermediate to advanced
826 pages
20h 10m
English
This chapter is about writing functions to reuse code, debugging logic errors during development, logging exceptions during runtime, unit testing your code to remove bugs, and ensuring stability and reliability.
This chapter covers the following topics:
A fundamental principle of programming is Don't Repeat Yourself (DRY).
While programming, if you find yourself writing the same statements over and over again, then turn those statements into a function. Functions are like tiny programs that complete one small task. For example, you might write a function ...