3 ms·
> Comments are better at explaining things than cryptic variable names anyhow. I'd pick const DEFAULT_FONT_SIZE = 42; // ... lots of code in the same fil
by mercurial 11y ago
> Comments are better at explaining things than cryptic variable names anyhow.
I'd pick
const DEFAULT_FONT_SIZE = 42;
// ... lots of code in the same file
var font = new Font(DEFAULT_FONT_SIZE)
over
// 42 is the default font size
var font = new Font(42);
any time.
Two reasons: version 2 encourages others to copy-paste out of laziness, and it does not resist refactoring very well.