all 2 comments

sorted by: hot top controversial new old
[–] 20 points 11 months ago* (last edited 11 months ago)

Excessive deduplication is an anti pattern.

The point about removing duplicates is to make the maintaining of the code easier. If it makes it harder, then it’s the wrong abstraction.

  • source
  • [–] 20 points 11 months ago

    Trying to abstract everything away in multiple layers of classes and function calls, just to avoid to write a 2 lines of code twice is the biggest evil in programming. Well probably not the biggest, but a huge problem in my opinion. Adding unnecessary complexity due to being clever is evil.

  • source