News for hackers. Stuff that matters.
Re:Unit Tests as Documentation by invaderzirp on Thursday October 17, 2024 @10:01PM (#41875744)
Erm, this is what docs are for. Like a man page, where it'll give you function signatures and return types and explain what those functions do. Unit tests are not that, and they shouldn't be that, because that's not their purpose.

New rule: if you write a function, you also have to write down what it does, and why. Deal?

There are no comments on this comment yet.