News for hackers. Stuff that matters.
Re:Don't DRY Your Code Prematurely by jay-barronville on Thursday May 30, 2024 @02:25PM (#40527071)
Fully agree. I think this is something that takes some time/experience to appreciate though. Junior engineers will spend countless hours writing pages of code that align with the “design patterns” or “best practices” of the day when there’s a simpler implementation of the code they’re writing. (I’m not saying this condescendingly—I was once a junior engineer who did that too!)
Re:Don't DRY Your Code Prematurely by coffeebeqn on Friday May 31, 2024 @12:08AM (#40531396)
It’s impossible to know what “good” looks like when you’re new and haven’t seen a few codebases of varying quality and made some terrible mistakes