this post was submitted on 27 May 2025
1989 points (99.5% liked)

Programmer Humor

25448 readers
1160 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
[–] Boomkop3@reddthat.com 38 points 2 months ago (18 children)

You managed to get an ai to do 200 lines of code and it actually compiled?

[–] pennomi@lemmy.world 27 points 2 months ago* (last edited 2 months ago) (10 children)

Uh yeah, like all the time. Anyone who says otherwise really hasn’t tried recently. I know it’s a meme that AI can’t code (and still in many cases that’s true, eg. I don’t have the AI do anything with OpenCV or complex math) but it’s very routine these days for common use cases like web development.

[–] Maalus@lemmy.world 16 points 2 months ago (3 children)

I recently tried it for scripting simple things in python for a game. Yaknow, change char's color if they are targetted. It output a shitton of word salad and code about my specific use case in the specific scripting jargon for the game.

It all based on "Misc.changeHue(player)". A function that doesn't exist and never has, because the game is unable to color other mobs / players like that for scripting.

Anything I tried with AI ends up the same way. Broken code in 10 lines of a script, halucinations and bullshit spewed as the absolute truth. Anything out of the ordinary is met with "yes this can totally be done, this is how" and "how" doesn't work, and after sifting forums / asking devs you find out "sadly that's impossible" or "we dont actually use cpython so libraries don't work like that" etc.

[–] Sl00k@programming.dev -1 points 2 months ago

It's possible the library you're using doesn't have enough training data attached to it.

I use AI with python for hundreds line data engineering tasks and it nails it frequently.

load more comments (2 replies)
load more comments (8 replies)
load more comments (15 replies)