April 2018
Intermediate to advanced
284 pages
5h 46m
English
| Tip 32 | Write Functions for Testability |
I had a literature professor who said that classes about writing don’t include enough reading and classes about reading don’t include enough writing. The same is true of code and tests: Books about code don’t talk enough about testing and books about testing don’t talk enough about composing code.
Time to fix that. Testing is important. If you don’t do it, you should. It makes your code easier to refactor. It makes legacy code much easier to understand. And it generally results in cleaner, less buggy applications.
Most developers agree with this. Why then is testing neglected?
It’s simple. Writing tests is hard. Or more accurately, many developers think writing tests is hard because they try to fit tests ...
Read now
Unlock full access