this post was submitted on 05 Jun 2025
474 points (98.8% liked)

Programmer Humor

24432 readers
92 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] mmddmm@lemm.ee 28 points 2 weeks ago (2 children)

Boilerplate unit tests.

It will generate bad tests, so you will have lots of tests blocking your work, but won't actually test the important properties.

Mass refactoring.

That's an amount of trust in the LLM capacity to not create hidden corner cases and your capacity to review large-scale changes that... I find your complete faith disturbing.

[–] scrubbles@poptalk.scrubbles.tech 4 points 2 weeks ago (1 children)

I mean, it's not like it ships it to production. You can read code it writes and modify it if you don't like it, or choose not to use it.

[–] nintendiator@feddit.cl -2 points 2 weeks ago (2 children)

If you can read the code it writes and modify it, a project manager can remove that time from you and take the AI slop direct to production.

[–] CanadaPlus 2 points 2 weeks ago

Another good reason to never let the company's project become your project.

[–] scrubbles@poptalk.scrubbles.tech 1 points 2 weeks ago (1 children)

That's a different problem. The original question was when would a competent dev use an LLM.

[–] nintendiator@feddit.cl 1 points 2 weeks ago

Which the answer is: never. If they did, by definition they would not be competent (unless they are being specifically trained in how to avoid code slop).

[–] pennomi@lemmy.world 3 points 2 weeks ago (1 children)

As always, the specific situation matters. Some refactors are mostly formulaic, and AI does great at that. For example, “add/change this database field, update the form, then update the api, update the admin page, update the ui, etc.” is perfectly reasonable to send an AI off to do, and can save plenty of programmer time.

[–] 30p87@feddit.org 6 points 2 weeks ago (1 children)

Until you don't properly check the diff, a +/- or </=/>/<=/>= was reversed, and you now have an RCE in test, soon to be in prod.

[–] pennomi@lemmy.world 3 points 2 weeks ago

What kind of moron doesn’t check the diff? Plus, modern AI coding tools explicitly show the diff and ask you to confirm each edit directly.

I wouldn’t let a human muck about in my code unchecked, much less an AI. But that doesn’t mean it’s useless.