this post was submitted on 26 Feb 2025
509 points (97.7% liked)

Programmer Humor

20800 readers
1417 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
[–] xmunk 14 points 13 hours ago (3 children)

I'm being pretty resistant about AI code Gen. I assume we're not too far away from "Our software product is a handcrafted bespoke solution to your B2B needs that will enable synergies without exposing your entire database to the open web".

[–] [email protected] 13 points 13 hours ago (3 children)

It has its uses. For templeting and/or getting a small project off the ground its useful. It can get you 90% of the way there.

But the meme is SOOO correct. AI does not understand what it is doing, even with context. The things JR devs are giving me really make me laugh. I legit asked why they were throwing a very old version of react on the front end of a new project and they stated they "just did what chatgpt told them" and that it "works". Thats just last month or so.

The AI that is out there is all based on old posts and isnt keeping up with new stuff. So you get a lot of the same-ish looking projects that have some very strange/old decisions to get around limitations that no longer exist.

[–] [email protected] 8 points 10 hours ago

Holdup! You've got actual, employed, working, graduated juniors who are handing in code that they don't even understand?

[–] [email protected] 3 points 10 hours ago

The AI also enabled some very bad practices.

It does not refactor and it makes writing repetitive code so easy you miss opportunities to abstract. In a week when you go to refactor you're going to spend twice as long on that task.

As long as you know what you're doing and guide it accordingly, it's a good tool.

[–] [email protected] 6 points 12 hours ago (1 children)

Yeah, I think personally LLMs are fine for like writing a single function, or to rubber duck with for debugging or thinking through some details of your implementation, but I'd never use one to write a whole file or project. They have their uses, and I do occasionally use something like ollama to talk through a problem and get some code snippets as a starting point for something. Trying to do too much more than that is asking for problems though. It makes it way harder to debug because it becomes reading code you haven't written, it can make the code style inconsistent, and a non-insignifigant amount of the time even in short code segments it will hallucinate a non existent function or implement something incorrectly, so using it to write massive amounts of code makes that way more likely.

[–] [email protected] 0 points 10 hours ago

The CursoAI debugging is the best experience ever.

It's so much easier than googling don't stack trace and then browsing GitHub issues and stack overflow.

[–] [email protected] 8 points 13 hours ago* (last edited 13 hours ago)

without exposing your entire database to the open web until well after your payment to us has cleared, so it's fine.

Lol.

[–] [email protected] 3 points 12 hours ago

Our gluten-free code is handcrafted with all-natural intelligence.