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

Programmer Humor

22444 readers
1702 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
[–] [email protected] 121 points 3 days ago* (last edited 3 days ago) (4 children)

Co"worker" spent 7 weeks building a simple C# MVC app with ChatGPT

I think I don't have to tell you how it went. Lets just say I spent more time debugging "his" code than mine.

[–] [email protected] 34 points 2 days ago* (last edited 2 days ago)

I tried out the new copilot agent in VSCode and I spent more time undoing shit and hand holding than it would have taken to do it myself

Things like asking it to make a directory matching a filename, then move the file in and append _v1 would result in files named simply "_v1" (this was a user case where we need legacy logic and new logic simultaneously for a lift and shift).

When it was done I realized instead of moving the file it rewrote all the code in the file as well, adding several bugs.

Granted I didn't check the diffs thoroughly, so I don't know when that happened and I just reset my repo back a few cookies and redid the work in a couple minutes.

[–] [email protected] 22 points 2 days ago (1 children)

I will give it this. It's been actually pretty helpful in me learning a new language because what I'll do is that I'll grab an example of something in working code that's kind of what I want, I'll say "This, but do X" then when the output doesn't work, I study the differences between the chatGPT output & the example code to learn why it doesn't work.

It's a weird learning tool but it works for me.

[–] [email protected] 13 points 2 days ago (1 children)

It's great for explaining snippets of code.

[–] [email protected] 1 points 2 days ago (1 children)

I've also found it very helpful with configuration files. It tells me how someone familiar with the tool would expect it to work. I've found it's rarely right, but it can get me to something reasonable and then I can drill into why it doesn't work.

[–] [email protected] 2 points 1 day ago

Yes, and I think this is how it should be looked at. It is a hyper focused and tailored search engine. It can provide info, but the "doing" not as well.

[–] [email protected] 5 points 2 days ago (2 children)

I do enjoy the new assistant in JetBrains tools, the one that runs locally. It truly helps with the trite shit 90% of the time. Every time I tried code gen AI for larger parts, it's been unusable.

[–] [email protected] 5 points 2 days ago (1 children)

It works quite nice as autocomplete

[–] [email protected] 3 points 2 days ago
[–] [email protected] 0 points 2 days ago

Except in the 10% of times, in 30% of those you'll have a hell of a lot of fun finding which exact line has one little variable name mismatch. But if you're actually very careful, it's a nice feature.