News for hackers. Stuff that matters.
Re:Why was Pinball removed from Windows Vista? by miahi on Tuesday December 18, 2012 @04:06PM (#4939581)
What's really annoying is that most of the time you see this kind of comment there is no explanation why 10 was chosen.
Re:Why was Pinball removed from Windows Vista? by dhimes on Tuesday December 18, 2012 @04:55PM (#4939816)
And that's what comments really need to do: tell 'why.'
Re:Why was Pinball removed from Windows Vista? by Pyrodogg on Tuesday December 18, 2012 @05:41PM (#4940037)
Re:Why was Pinball removed from Windows Vista? by MetallicCloud on Tuesday December 18, 2012 @07:24PM (#4940535)
That's why you should use constants. Still self documenting without the need for comments (usually).
Re:Why was Pinball removed from Windows Vista? by adamzegelin on Tuesday December 18, 2012 @10:16PM (#4940969)

    const TEN = 12;
Re:Why was Pinball removed from Windows Vista? by tehwalrus on Wednesday December 19, 2012 @05:10AM (#4941939)

    #define true false
Re:Why was Pinball removed from Windows Vista? by fudged71 on Thursday December 20, 2012 @03:19AM (#4946746)
In our embedded systems class we were required to define all of our constants, just to add another level of description to operations. It definitely helped to navigate spaghetti code.