Y
Hacker News
new
|
ask
|
show
|
jobs
by
benvds
4610 days ago
A CS 101 student apparently writes the most readable code.
4 comments
UK-AL
4610 days ago
Has time to think.
link
marcosdumay
4610 days ago
It's slower than the mathematician's, and does not handle all error cases. No wonder it looks cleaner.
link
dsego
4610 days ago
Except it is not correct.
link
Apocryphon
4610 days 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.
link
cheapsteak
4609 days ago
I don't get it, what's incorrect about the code?
link
dsego
4609 days ago
Try calling the function with 0 or a negative number.
link
smtbsrn
4610 days ago
ignorance is bliss
link