News for hackers. Stuff that matters.
Re:Goodbye, Clean Code (2020) by tcbasche on Tuesday November 16, 2021 @11:20AM (#29242336)
I've seen a few developers see multiple "duplicated" API formats for instance (for different API's) in the same codebase and think those are "duplicated" and then entangle two completely separate API's together. This is worse IMO
Re:Goodbye, Clean Code (2020) by bluGill on Tuesday November 16, 2021 @01:15PM (#29244266)
There is accidental duplication to beware of. That is when different things looks the same. Then there is real duplication.. Only the later is bad and should be eliminated. Telling the differences is hard
Re:Goodbye, Clean Code (2020) by cma on Tuesday November 16, 2021 @01:33PM (#29244560)
I'd rather look at a simple arithmaticl expression and know immediately what is going on, rather than have to make up a hard to remember name for every small expression that happens to get repeated one or more times in the name of DRY. The same applies to small bits of non-arithmatical code.