|
|
|
|
|
by worik
685 days ago
|
|
> To document + enforce the intended functionality, use tests. Tests go out of date Tests increase the maintainince burden The compiler does not ensure code is tested Tests get duplicated Mēh! Tests matter, and testing is very important. Good judgment is required Just like comments. Writing code requires professional care at every step. The compiler helps of course see, but being professional is more than writing code that compiles It involves documents too. And tests. Not too many (tests or documents) but not too few Undocumented code is an enormous burden to maintain (I am eyebrows deep in such a project now). It is not enough to just write code and tests, documents including inline comments, are crucial |
|