3 ms·
Exactly that Coders: don't give me any BS like x = x + 1 /* Increment x */ Rather, tell me, if it's not obvious, WHY are you doing that
by raverbashing 13y ago
Exactly that
Coders: don't give me any BS like x = x + 1 /* Increment x */
Rather, tell me, if it's not obvious, WHY are you doing that
- kunil 13y agoTo increment x
- pmelendez 13y agoWhy do you need to increment?
- bluetshirt 13y agoBecause it needs to be bigger.
- raverbashing 13y agoThen make it times 2. Or add 5.
- cobrausn 13y agoThere should rarely be any comments on why x is being incremented unless there is something particularly clever about why. Commentary should be reserved for program blocks where something non-obvious is happening or where something obvious is happening for non-obvious reasons, IMHO.