Re:Book Review: A Philosophy of Software Design (2020)
by verinus on Thursday July 01, 2021 @02:15AM
(#27696731)
true.
But (hopefully) most of the time good naming, parameters and return types and the context of the library does that.
But you are right, esp. complex methods or APIs require lots of documentation- but tbh I doubt it is in sources...
Unit tests tell me how the code is supposed to behave given certain inputs, but without a statement of what the function is trying to accomplish I can't tell if any necessary unit tests are missing. Or if any are just accidentally working.