September 2019
Intermediate to advanced
352 pages
8h 3m
English
Topic 25 | Assertive Programming |
There is a luxury in self-reproach. When we blame ourselves we feel no one else has a right to blame us.
It seems that there's a mantra that every programmer must memorize early in his or her career. It is a fundamental tenet of computing, a core belief that we learn to apply to requirements, designs, code, comments, just about everything we do. It goes
This can never happen…
“This application will never be used abroad, so why internationalize it?” “count can't be negative.” “Logging can't fail.”
Let's not practice this kind of self-deception, particularly when coding.
| Tip 39 | Use Assertions to Prevent the Impossible |
Whenever you find yourself thinking “but of course that ...
Read now
Unlock full access