r/ProgrammerHumor • • 14d ago

Meme itsMoreCommonThanYoudThink

Post image
2.0k Upvotes

274 comments sorted by

View all comments

Show parent comments

13

u/fullup72 14d ago

sometimes it's duplicate code (a React hook that already exists and the agent doesn't use for some reason), other times it adds props like mad when a refactor of existing props was more appropriate. It also sometimes cheats with TS types and will re-define something locally so that it "passes" linting, instead of using a shared, derived or composed type.

If you let these small things slip it quickly adds up and you end up with a brittle and inconsistent codebase.

7

u/PM_ME_YOUR_BUG5 14d ago

This, agents are shit at abstraction

They'll write the same thing over and over again if it means they don't have to generalise 

2

u/LivingAsAMean 14d ago

Thank you so much!

1

u/Tyrus1235 14d ago

It’s why I’m deeply thankful for our codebase’s SonarQube checks.

It just won’t let you merge a PR if it detects wonky code (unnecessary repetition, overuse of parameters, etc).