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 ...
Get The Pragmatic Programmer: your journey to mastery, 20th Anniversary Edition, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.