News for hackers. Stuff that matters.
Re:How to win the coding interview by heartbreak on Tuesday May 31, 2016 @11:03AM (#11806896)
Particularly with beginners, I think there's a lot of "What were they thinking when they wrote this??" going on when a professor or TA reads code that is completely unintuitive (Take a look at /r/learnprogramming for some examples). Having comments everywhere makes it easy to say, "Oh! S/he was trying to reset all of the variables in the program by calling main(null); (actual example from the subreddit). How would you ever know that without a comment explaining why main(null); is called in the middle of a class?

There are no comments on this comment yet.