this post was submitted on 23 Oct 2026
1136 points (98.5% liked)

Programmer Humor

33999 readers
299 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
[–] HexDecimal@feddit.online 58 points 2 weeks ago (2 children)

As an open source project maintainer I can always tell whenever a pull request is AI assisted because no human would ever write full tests for all their pull requests.

[–] nykula@piefed.social 4 points 2 weeks ago (1 children)

Libtcod? Cool project. Btw do those generated tests tend to be helpful or confusing?

[–] HexDecimal@feddit.online 7 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

The important part is that the tests track regressions and they're helpful for that. After that, it's okay if tests are mostly write-only.

I've noticed that AI commentary tends to describe what the code is doing verbatim which is better for naming tests and functions rather than writing code comments, docstrings, or change notes. I usually have to fix this public-facing documentation to not talk about library internals which no user of the library would ever care about.

So far I feel that AI assists are good when you have the time and effort to push back on them, but that isn't an option for all projects, it works well for my own projects which have very few contributors in the first place. For the most part I can treat them with the same scrutiny as human written code. When the person submitting the code is obviously not checking their own code then that's a problem.

[–] OwOarchist@pawb.social -2 points 2 weeks ago

When the person submitting the code is obviously not checking their own code then that’s a problem.

If you're getting a high volume of those, it's time to just ban those users and move on.

[–] MangoCats@feddit.it 2 points 2 weeks ago (1 children)

Yep, and that's where I wonder if AI written code might, eventually, be more maintainable... at least by AI.

[–] HexDecimal@feddit.online 10 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

From what I've seen and heard, AI seems to do well for test-driven development. That doesn't necessarily translate into good code, but it does translate into tested code.

At the very least it can translate the documentation of an API into the appropriate tests to verify the documentation is correct, and I'm being quite humbled by that.

[–] MangoCats@feddit.it 1 points 2 weeks ago

The thing I have to constantly adjust for is: it does things at 10x my speed (on average, some things it does slower, but some things it does 100x faster), and about 80% of my accuracy. So, I have to really aggressively apply the bug catching methodologies that a lot of times I would get away without "because I'm that good..." not really, but there are some things I do that I have justifiably high confidence in, others that definitely need testing which I try to do before handing over to the test team. The reason I don't apply those bug catching methodologies to ALL my code is because that slows me down 3-5x, and it seems to slow down the LLMs about 2-3x, so they're only 3-5x faster than me, on average, when they are writing all the tests and multiply reviewing all the docs and code, compared to me "winging it."

Where I think all this LLM stuff is going to pay off bigger is 10 years in the future, looking back at old code, yeah all that documentation is a bit of overkill, but we tended to underkill the documentation 10 years ago and we're still not doing as much as we probably should when we do things the "just before LLMs came on the scene" ways.