Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
snorkel
· 15y ago · 0 comments
self-documenting code only says what it does but does not say anything about what it's
supposed
to do or explain
why
Comments
[–]
rimantas
15y ago
You may be right about
why
, but I don't agree on
what
. Good names for functions/methods can tell a lot. I feel like I am getting spoiled by Objective-C and Cocoa Touch APIs.
[–]
nadnerb
15y ago
Self documenting code should be accompanied tests, which further replaces the need for documentation. It also has less chance to rot.