Repeat yourself, do more than one thing, and... — programming is terrible
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
saved by
related reading
- Write code that is easy to delete, not easy to... — programming is terribleprogrammingisterrible.com
- The Wrong Abstraction - Sandi Metzsandimetz.com
- how I think when I think about programming - alice mazalicemaz.com
- Cognitive load is what mattersminds.md
- Reflections on 10,000 Hours of Programming | Matt Rickardmatt-rickard.com
- Write code that is easy to delete, not easy to... — programming is terribleprogrammingisterrible.com
- Essays on programming I think about a lot | benkuhn.netbenkuhn.net
- A Bunch of Programming Advice I'd Give To Myself 15 Years Ago | Marcus' Blogmbuffett.com
- AHA Programming 💡kentcdodds.com
- How to become a dramatically better programmernews.ycombinator.com
- Some thoughts on writingdanluu.com
- How To Do Lessalexturek.com