this post was submitted on 21 Mar 2025
367 points (100.0% liked)

Programmer Humor

21822 readers
1724 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] 12 points 2 days ago (3 children)

Maybe I’m old, but I avoid AI specifically because I’ve seen the quality of code out there (not to say my quality is amazing), and if AI learned from that…. Well

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

AI is great for when you're typing out 30 slight variations of the same thing, and you can just be like "see what I'm doing here? Do it for the other 30 variables" and it does it just fine.

[–] [email protected] 5 points 2 days ago

It's also great if you have a general knowledge of something but don't know the details. Like today I needed to do some database introspection using queries in Snowflake, I knew exactly what I needed but not where the database schema is located etc., so I let GPT write the query instead.

Or some time ago I needed to get all instances of classes implementing a specific generic interface in .NET, the code eventually dabbled into the very specifics of the runtime, it would've taken me much longer to find out with documentation.

All in all, it's my opinion that AI is great if two conditions are met:

  • you know exactly what you want to do and you can specify it to very tiny details
  • you have the knowledge to verify whether the result makes sense without running the code (or at least the knowledge that it can't break your app or computer)
[–] [email protected] 2 points 1 day ago

*pastes list of 100 numbers"

"Flunky, put this in a where in SQL statement. "

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

It's taught me a few new tricks. It's good at short bits of code, but anything longer is likely to have problems that take as much time to fix as writing it yourself to begin with.

I also find learning something new to be much faster when you can just ask a question about best practices or why something works like it does.

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

I don't think it's necessary to strictly avoid it by any means, it's quite a useful tool. You just have to use it appropriately, similar to stack overflow in some ways. That said, obviously you should use / avoid whatever tools as you want.