this post was submitted on 03 Aug 2025
730 points (98.2% liked)

Programmer Humor

37700 readers
135 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] AlboTheGuy@feddit.nl 51 points 1 week ago (2 children)

The fallback is gonna be hilarious, the codebase rewrote by AI? With basically no considerations of business need and system capacity?

I can't wait for the humiliating rollback

[–] Witchfire@lemmy.world 22 points 1 week ago* (last edited 1 week ago) (2 children)

I bet you their "10x coder" can't describe what a unit test is nor its purpose

Then again, can you even unit test AI generated slop with how often it's rewritten?

[–] Tamo240@programming.dev 11 points 1 week ago (1 children)

Unit tests are exactly for code that is often rewritten, because it ensures that whatever interface still behaves the same, regardless of the implementation. This a large portion of the point of unit tests: not for testing the initial implementation but confirming that any subsequent implementation behaves the same.

[–] Witchfire@lemmy.world 5 points 1 week ago* (last edited 1 week ago)

In a normal scenario yes, but "vibe coding" rewrites whole swaths of code. It's like painting detail with a bucket. Trying to keep up with it seems like a sisyphiean task

[–] python@lemmy.world 7 points 1 week ago

Using AI to write Unit tests is one of the few use cases I somewhat understand, but even that turns out horrible with improper supervision. I reviewed one Pull Request once where the testing was so horribly cobbled together and nonsensical that I rewrote those tests by hand (after asking the person I was reviewing to fix it twice and them only making it worse by letting their AI rewrite them)

[–] HenryDorsett@lemmy.world 1 points 1 week ago

If you want to release details to a less than scrupulous company running an AI, you can feed it that information.

The real use is generating syntax. The logic is the hard part to teach, so with an understanding of the logic behind the programming, you can tweak variables for your final product.

I've mostly used this to generate scripts to deploy rapidly to the latest emerging crisis, but thats from the perspective of a help desk agent with too many years of experience to still be doing it, but in a way I enjoy it. The bigger problems aren't my problems. I escalate as appropriate, and its no longer my problem.

I digress, it generates syntax and you plug in your infrastructure variables in a file you control. Then again I may be paranoid because I've seen HIPAA fuck extra hard with non-clinical staff who have access to records in their job duties.