this post was submitted on 24 Jul 2026
428 points (98.2% liked)

Programmer Humor

32452 readers
1507 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] olafurp@lemmy.world 1 points 15 hours ago (2 children)

I never understand why you wouldn't want to read the code. I prevent a massive amount of correct slop by just skimming. The LLM will 10 times out of 10 never ask "this code will be a massive duplication of exact same behavior, do you want to refractor it?" because it's trained to finish a task without asking if possible.

Uncle Bob now writes code for his tests instead of tests for his code. I know it's TDD but it always seemed backwards to me.

Unit tests for logic, integration tests for outside apis, e2e for features is the sweet spot IMO.

[–] GoatSynagogue@lemmy.world 2 points 7 hours ago (1 children)

Claude and most other of the top coding agents will check the codebase for existing patterns and functionality specifically so it doesn’t duplicate behaviours etc. Have you used any of them recently? That’s one of the first things it does before even writing a line of code.

[–] olafurp@lemmy.world 1 points 5 hours ago

I use Claude/Codex, if it finds a thingy that's reusable it'll use it but it'll never create it or ask if it should be created in my experience. I find that it doesn't create new components but just replicates the existing one.

Within same file is a different story though, it does write helper functions to share logic which is proper.

[–] Zannsolo@lemmy.world 2 points 7 hours ago

I generally only use ai to write code I know what it should look like but don't want to type it all out.