3 ms·
What's really annoying is that most of the time you see this kind of comment there is no explanation why 10 was chosen.
by miahi 14y ago
What's really annoying is that most of the time you see this kind of comment there is no explanation why 10 was chosen.
- dhimes 14y agoAnd that's what comments really need to do: tell 'why.'
- Pyrodogg 14y agohttp://xkcd.com/221/ http://xkcd.com/221/
- MetallicCloud 14y agoThat's why you should use constants. Still self documenting without the need for comments (usually).
- adamzegelin 14y agoconst TEN = 12;
- tehwalrus 14y ago#define true false
- fudged71 14y agoIn 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.