/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Unit tests as documentation
(www.thecoder.cafe)
174 points
thunderbong
| 1 comments |
17 Oct 24 17:22 UTC
|
HN request time: 0.225s
|
source
1.
Jeff_Brown
◴[
18 Oct 24 13:23 UTC
]
No.
41879222
[source]
▶
>>41871629 (OP)
#
First type signatures, then good function names, then tests. Between those three I rarely need comments -- except, perhaps ironically, in the tests, to explain what kind of corner condition I'm testing where.
ID:
GO
↑