News for hackers. Stuff that matters.
Re:Common Species Of Code by benvds on Monday November 11, 2013 @08:31AM (#6711459)
A CS 101 student apparently writes the most readable code.
Re:Common Species Of Code by UK-AL on Monday November 11, 2013 @08:39AM (#6711491)
Has time to think.
Re:Common Species Of Code by marcosdumay on Monday November 11, 2013 @11:52AM (#6712512)
It's slower than the mathematician's, and does not handle all error cases. No wonder it looks cleaner.
Re:Common Species Of Code by dsego on Monday November 11, 2013 @11:10AM (#6712256)
Except it is not correct.
Re:Common Species Of Code by Apocryphon on Monday November 11, 2013 @11:46AM (#6712460)
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.
Re:Common Species Of Code by cheapsteak on Monday November 11, 2013 @08:46PM (#6715331)
I don't get it, what's incorrect about the code?
Re:Common Species Of Code by dsego on Tuesday November 12, 2013 @09:13AM (#6717903)
Try calling the function with 0 or a negative number.
Re:Common Species Of Code by smtbsrn on Monday November 11, 2013 @10:25AM (#6712014)
ignorance is bliss