r/ProgrammerHumor • • Nov 25 '22

Meme Coding strategies

Post image
52.2k Upvotes

385 comments sorted by

View all comments

Show parent comments

6

u/GeneReddit123 Nov 25 '22 edited Nov 25 '22

super modular code that can cope with changing requirements :

Requirement never change, all that abstraction is useless and just adds complexity. However, every developer joining after you diligently updates all future code to integrate with all the cases your abstraction was designed to handle, unbeknownst the product doesn't use any of it. After some time, most of the code's complexity evolves like that joke about the five monkeys and the banana.

1

u/Xelynega Nov 25 '22

Requirements constantly change and abstraction makes code easier to understand and maintain(essentially the entire idea behind programming languages). If your abstraction is impossible to understand, it's not a good abstraction. I don't see why that means good abstractions shouldn't be written.