October 2021
Intermediate to advanced
336 pages
9h 16m
English
This chapter covers
Performance optimization and generality are two games programmers play that often hurt more than they help. When we say optimization in this chapter, we mean performance optimization, which involves increasing the throughput of code or reducing its duration. By generality, we mean the code encompasses more functionality, usually through more general parameters. To illustrate what we mean by generality and how it can be harmful, consider the following example.
If someone asks you for a knife, handing them a Swiss Army knife might be a godsend if the recipient ...
Read now
Unlock full access