top | item 5789268 (no title) andrewgross | 12 years ago Awesome, thanks for the explanation discuss order hn newest lotyrin|12 years ago Thank you for an excellent counterexample for when people claim code comments are useless. ollysb|12 years ago You could express the same thing without comments: boolean alreadyLogged = !_ok; boolean skipLogging = alreadyLogged && (Math.random() > 0.1) if( skipLogging ) return res; load replies (1) dampier|12 years ago Heh ... agreed. A comment here would definitely not go amiss.
lotyrin|12 years ago Thank you for an excellent counterexample for when people claim code comments are useless. ollysb|12 years ago You could express the same thing without comments: boolean alreadyLogged = !_ok; boolean skipLogging = alreadyLogged && (Math.random() > 0.1) if( skipLogging ) return res; load replies (1) dampier|12 years ago Heh ... agreed. A comment here would definitely not go amiss.
ollysb|12 years ago You could express the same thing without comments: boolean alreadyLogged = !_ok; boolean skipLogging = alreadyLogged && (Math.random() > 0.1) if( skipLogging ) return res; load replies (1)
lotyrin|12 years ago
ollysb|12 years ago
dampier|12 years ago