News for hackers. Stuff that matters.
Re:Don't DRY Your Code Prematurely by visil on Thursday May 30, 2024 @03:13PM (#40527544)
Reminds me of this[1] great blogpost: "This abstraction adds overhead. “Abstracting” the common operation has made it more difficult to read, not less difficult to read. People for who consider meta-programming some sort of Black Magic often make this exact point: The mechanism for removing duplication adds complexity itself. One view is that the overall effect is only a win if the complexity added is small compared to the duplication removed."

[1]: http://weblog.raganwald.com/2007/12/golf-is-good-program-spo...

Re:Don't DRY Your Code Prematurely by kitkat_new on Thursday May 30, 2024 @08:37PM (#40530336)
maintainability is more important than readability alone