202203221620 The golden rule of programming
My golden rule of programming is
Simplicity above all.
Simple is understandable first, maintainable second, changeable last.
Notice that there's nothing here about performance, elegance, abstraction, repetition or anything like that. The only way to write good code is for it to be simple, understandable, maintainable, and changeable.
To be maximally explicit, 202204031033 Abstractions and future-coding are actively harmful. I point this particular piece out because I find that many good developers fall into the fallacy of thinking these things are aiding their productivity and don’t see that they’re eroding the simplicity of their projects day-by-day.
A similar saying that I value and find is relevant when implementing this rule is 202203221630 Slow is steady, steady is smooth, smooth is fast. Remember that 202304031244 There is never time to fix things later, so we need to be patient and do things right from the outset.
- 202109061338 Software Engineering
- 202203221610 Naming conventions should use unambiguous delimiters
- 202203221630 Slow is steady, steady is smooth, smooth is fast
- 202204272219 The fastest code is no code
- 202204272326 Write less code
- 202206112125 Zen in the face of programming
- 202312091440 Eliminate effects between unrelated things
Linked from this note