this post was submitted on 12 Apr 2025
1272 points (98.5% liked)

Programmer Humor

22773 readers
307 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
[โ€“] A_Union_of_Kobolds@lemmy.world 29 points 1 week ago* (last edited 1 week ago) (11 children)

AI is very very neat but like it has clear obvious limitations. I'm not a programmer and I could tell you tons of ways I tripped Ollama up already.

But it's a tool, and the people who can use it properly will succeed.

I'm not saying ita a tool for programmers, but it has uses

[โ€“] EmilyIsTrans@lemmy.blahaj.zone 25 points 1 week ago (7 children)

I think its most useful as an (often wrong) line completer than anything else. It can take in an entire file and just try and figure out the rest of what you are currently writing. Its context window simply isn't big enough to understand an entire project.

That and unit tests. Since unit tests are by design isolated, small, and unconcerned with the larger project AI has at least a fighting change of competently producing them. That still takes significant hand holding though.

[โ€“] jorm1s@sopuli.xyz 4 points 1 week ago (2 children)

Isn't writing tests with AI like a really bad idea? I mean, the whole point of writing separate tests is hoping that you won't make the same mistakes twice, and therefore catch any behavior in the code that does not match your intent. But If you use an LLM to write a test using said code as context (instead of the original intent you would use yourself), there's a risk that it'll just write a test case that makes sure the code contains the wrong behavior.

Okay, it might still be okay for regression testing, but you're still missing most of the benefit you'd get by writing the tests manually. Unless you only care about closing tickets, that is.

[โ€“] Grazed@lemmy.world 5 points 1 week ago

"Unless you only care about closing tickets, that is."

Perfect. I'll use it for tests at work then.

load more comments (1 replies)
load more comments (5 replies)
load more comments (8 replies)