News for hackers. Stuff that matters.
Re:I don’t buy “duplication is cheaper than the wrong abstra... by mekoka on Tuesday August 29, 2023 @10:33PM (#37316972)
Entirely agree. DRYing is compression. It serves similar purpose. Like a mathematical equation, it's light, terse, elegant, easy to carry in one's pocket, yet loaded with meaning. It's not, however, zero cost. At maintenance time, it needs unpacking. DRYing is also not an exact science, nor a hard rule. When applied, it requires usability and cognitive considerations. That's the delicate trade-off. "Will people coming after me have an easy time figuring this out?" The newbie who comes to an existing code base and proceeds to indiscriminately DRY things up often doesn't realize that the reason they were able to do so in the first place is because, although repetitive, they could understand the original source, often without much effort. That's why repetition is cheaper than the wrong abstraction.

There are no comments on this comment yet.