r/ProgrammerHumor • • Oct 19 '26

Meme itsMoreCommonThanYoudThink

Post image
2.0k Upvotes

273 comments sorted by

View all comments

Show parent comment

13

u/fullup72 Oct 19 '26

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 Oct 19 '26

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 Oct 19 '26

Thank you so much!

1

u/Tyrus1235 Oct 20 '26

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).