10
Testing and TDD
No matter how good a developer is, they'll write code that doesn't always perform correctly. This is unavoidable, as no developer is perfect. But it's also because the expected results are sometimes not the ones that one would think of while immersed in coding.
Designs rarely go as expected and there's always a discussion going back and forth while they are being implemented, until refining them and getting them correct.
Everyone has a plan until they get punched in the mouth. – Mike Tyson
Writing software is notoriously difficult because of its extreme plasticity, but at the same time, we can use software to double-check that the code is doing what it is supposed to do.
Be aware that, as with any other code, tests can have ...
Get Python Architecture Patterns 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.