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

Programmer Humor

23955 readers
2268 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
[โ€“] Anders429@programming.dev 83 points 1 month ago (15 children)

Know a guy who tried to use AI to vibe code a simple web server. He wasn't a programmer and kept insisting to me that programmers were done for.

After weeks of trying to get the thing to work, he had nothing. He showed me the code, and it was the worst I've ever seen. Dozens of empty files where the AI had apparently added and then deleted the same code. Also some utter garbage code. Tons of functions copied and pasted instead of being defined once.

I then showed him a web app I had made in that same amount of time. It worked perfectly. Never heard anything more about AI from him.

[โ€“] A_Union_of_Kobolds@lemmy.world 29 points 1 month ago* (last edited 1 month 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 26 points 1 month 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.

[โ€“] franzfurdinand@lemmy.world 15 points 1 month ago (1 children)

I've used them for unit tests and it still makes some really weird decisions sometimes. Like building an array of json objects that it feeds into one super long test with a bunch of switch conditions. When I saw that one I scratched my head for a little bit.

[โ€“] EmilyIsTrans@lemmy.blahaj.zone 5 points 1 month ago (1 children)

I most often just get it straight up misunderstanding how the test framework itself works, but I've definitely had it make strange decisions like that. I'm a little convinced that the only reason I put up with it for unit tests is because I would probably not write them otherwise haha.

[โ€“] franzfurdinand@lemmy.world 4 points 1 month ago

Oh, I am right there with you. I don't want to write tests because they're tedious, so I backfill with the AI at least starting me off on it. It's a lot easier for me to fix something (even if it turns into a complete rewrite) than to start from a blank file.

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