My Brain Immediately Said Refactor

My Brain Immediately Said Refactor
refactoring-memes, code-organization-memes, bad-design-memes, architecture-memes, dry-principle-memes | ProgrammerHumor.io

Someone clearly wrote this taxonomy without consulting the DRY principle. "International Foods" is the parent category that already includes Hispanic, Indian, Asian, Kosher, and Italian foods. It's like having a function called processData() and then child functions processDataButForUsers(), processDataButForProducts(). Just make it foods_by_cuisine and call it a day.

The real kicker is "Italian Foods" being listed separately like it's not international. Someone's inheritance hierarchy is broken. Either everything goes under International or you create proper subcategories. Right now it's giving off major "I'll fix the architecture later" vibes that turned into production code.

Also, whoever designed this probably has 47 nested if-else statements in their codebase and wonders why code reviews take three hours.

More Like This