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

Programmer Humor

22726 readers
1537 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
[–] 30p87@feddit.org 121 points 1 week ago* (last edited 1 week 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.

[–] wise_pancake@lemmy.ca 34 points 1 week ago* (last edited 1 week 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.

[–] other_cat@lemmy.zip 22 points 1 week 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.

[–] cantstopthesignal@sh.itjust.works 14 points 1 week ago (1 children)

It's great for explaining snippets of code.

[–] pohart@programming.dev 1 points 1 week 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.

[–] Lightor@lemmy.world 2 points 1 week 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.

[–] state_electrician@discuss.tchncs.de 5 points 1 week 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.

[–] qaz@lemmy.world 5 points 1 week ago (1 children)

It works quite nice as autocomplete

[–] 30p87@feddit.org 0 points 1 week 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.