DEV Community

Discussion on: 10 golden rules for becoming a better programmer

Collapse
 
marmorawski profile image
Marius Morawski

Good rules to code by.
There's just one rule that I feel should be less absolute: String literals. When a string appears only once (e.g. a log message or the name of a config option or so) using literals can actually improve readability without sacrificing anything. At least that's been my experience.