flâneur — a map of the web's best reading

Repeat yourself, do more than one thing, and... — programming is terrible

programmingisterrible.com · 2,326 words · saved by 2 readers

If you ask a programmer for advice—a terrible idea—they might tell you something like the following: Don’t repeat yourself. Programs should do one thing and one thing well. Never rewrite your code...

If you ask a programmer for advice-a terrible idea-they might tell you something like the following: Don't repeat yourself. Programs should do one thing and one thing well. Never rewrite your code from scratch, ever!. Following "Don't Repeat Yourself" might lead you to a function with four boolean flags, and a matrix of behaviours to carefully navigate when changing the code. Splitting things up into simple units can lead to awkward composition and struggling to coordinate cross cutting changes. Avoiding rewrites means they're often left so late that they have no chance of succeeding. The advi

Explore this link on the map →

saved by

related reading