/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Examples are the best documentation
(rakhim.exotext.com)
396 points
Bogdanp
| 2 comments |
09 Oct 25 19:34 UTC
|
HN request time: 0.421s
|
source
1.
xchip
◴[
09 Oct 25 22:46 UTC
]
No.
45533826
[source]
▶
>>45532090 (OP)
#
also unit tests
replies(1):
>>45535336
#
ID:
GO
2.
thebestmoshe
◴[
10 Oct 25 04:19 UTC
]
No.
45535336
[source]
▶
>>45533826 (TP)
#
I’d say the part of the unit test that is helpful is the example of using the code.
It has a pro over documented examples in that they are _guaranteed_ to be correct.
↑