Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
benvds
· 13y ago · 0 comments
A CS 101 student apparently writes the most readable code.
Comments
[–]
UK-AL
13y ago
Has time to think.
[–]
marcosdumay
13y ago
It's slower than the mathematician's, and does not handle all error cases. No wonder it looks cleaner.
[–]
dsego
13y ago
Except it is not correct.
[–]
Apocryphon
13y ago
I like how both the student and the Startup hacker mess up bounds-checking, except the student doesn't realize it in the initial case, and the hacker misses it as the codebase gets progressively larger and he or she gets more tired.
[–]
cheapsteak
13y ago
I don't get it, what's incorrect about the code?
[–]
dsego
13y ago
Try calling the function with 0 or a negative number.
[–]
smtbsrn
13y ago
ignorance is bliss