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] 56 points 2 days ago (7 children)

AI is fucking so useless when it comes to programming right now.

They can't even fucking do math. Go make an AI do math right now, go see how it goes lol. Make it a, real world problem and give it lots of variables.

[โ€“] [email protected] 7 points 2 days ago

I have Visual Studio and decided to see what copilot could do. It added 7 new functions to my game with no calls or feedback to the player. When I tested what it did ...it used 24 lines of code on a 150 line .CS to increase the difficulty of the game every time I take an action.

The context here is missing but just imagine someone going to Viridian forest and being met with level 70s in pokemon.

[โ€“] [email protected] 7 points 2 days ago

I asked ChatGPT to do a simple addition problem a while back and it gave me the wrong answer.

[โ€“] [email protected] 3 points 2 days ago* (last edited 2 days ago)

It is not, not useful. Don't throw a perfectly good hammer to the bin because some idiots say it can build a house on its own. Just like with hammers you need to make sure you don't hit yourself in the thumb and use it for purpose

[โ€“] [email protected] 7 points 2 days ago* (last edited 2 days ago)

My favourite AI code test is code to point a heliostat mirror at (lattitude, longitude) at a target at (latitude, longitude, elevation)

After a few iterations to get the basics in place, "also create the function to select the mirror angle"

A basic fact that isn't often described is that to reflect a ray you aim the mirror halfway between the source and the target. AI Congress up with the strangest non-working ways of aiming the mirror

Working with AI feels a lot like working with a newbie

[โ€“] [email protected] 3 points 2 days ago (1 children)

I find it useful for learning once you get the fundamentals down. I do it by trying to find all the bugs in the generated code, then see what could be cut out or restructured. It really gives more insight into how things actually work than just regular coding alone.

This isn't as useful for coding actual programs though, since it would just take more time than necessary.

[โ€“] [email protected] 2 points 2 days ago

So true, it's an amazing tool for learning. I've never been able to learn new frameworks so fast.

AI works very well as a consultant, but if you let it write the code, you'll spend more time debugging because the errors it makes are often subtle and not the types of errors humans make.