News for hackers. Stuff that matters.
Re:Programming and Writing by themacguffinman on Friday May 14, 2021 @09:01PM (#27161294)
Arguably writing tests is the analog of reading prose aloud. It forces you to think through cases as a user of your code and often helps catch bugs as a side effect of your thinking than the test result.

Or perhaps a closer analog is the rubber duck where being forced to explain your problem leads to thinking more clearly about it and solving it.

There are no comments on this comment yet.