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

Programmer Humor

23784 readers
2563 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
 
top 50 comments
sorted by: hot top controversial new old
[–] MonkderVierte@lemmy.ml 279 points 1 week ago (12 children)

Code that does not work is just text.

[–] galoisghost@aussie.zone 173 points 1 week ago (5 children)

I’ve never thought of it that way. I’m going to add copy writer to my resume.

[–] Mouselemming@sh.itjust.works 36 points 1 week ago

Maybe fiction writer as well

load more comments (4 replies)
[–] Madison420@lemmy.world 32 points 1 week ago (2 children)

No the spell just fizzled. In my experience it happens far less often if you start with an Abra kabara and end it with an Alakazam!

load more comments (2 replies)
load more comments (10 replies)
[–] coherent_domain@infosec.pub 150 points 1 week ago* (last edited 1 week ago) (11 children)

The image is taken from Zhihu, a Chinese Quora-like site.

The prompt is talking about give a design of a certain app, and the response seems to talk about some suggested pages. So it doesn't seem to reflect the text.

But this in general aligns with my experience coding with llm. I was trying to upgrade my eslint from 8 to 9, and ask chatgpt to convert my eslint file, and it proceed to spit out complete garbage.

I thought this would be a good task for llm because eslint config is very common and well-documented, and the transformation is very mechanical, but it just cannot do it. So I proceed to read the documents and finished the migration in a couple hour...

[–] 30p87@feddit.org 74 points 1 week ago (10 children)

I asked ChatGPT with help about bare metal 32-bit ARM (For the Pi Zero W) C/ASM, emulated in QEMU for testing, and after the third iteration of "use printf for output" -> "there's no printf with bare metal as target" -> "use solution X" -> "doesn't work" -> "ude printf for output" ... I had enough.

[–] purplemonkeymad@programming.dev 58 points 1 week ago

Sounds like it's perfectly replicated the help forums it was trained on.

[–] bjoern_tantau@swg-empire.de 18 points 1 week ago (1 children)

I used ChatGPT to help me make a package with SUSE's Open Build Service. It was actually quite good. Was pulling my hair out for a while until I noticed that the project I wanted to build had changes URLs and I was using an outdated one.

In the end I just had to get one last detail right. And then my ChatGPT 4 allowance dried up and they dropped me back down to 3 and it couldn't do anything. So I had to use my own brain, ugh.

load more comments (1 replies)
load more comments (8 replies)
[–] MudMan@fedia.io 19 points 1 week ago (11 children)

It's pretty random in terms of what is or isn't doable.

For me it's a big performance booster because I genuinely suck at coding and don't do too much complex stuff. As a "clean up my syntax" and a "what am I missing here" tool it helps, or at least helps in figuring out what I'm doing wrong so I can look in the right place for the correct answer on something that seemed inscrutable at a glance. I certainly can do some things with a local LLM I couldn't do without one (or at least without getting berated by some online dick who doesn't think he has time to give you an answer but sure has time to set you on a path towards self-discovery).

How much of a benefit it's for a professional I couldn't tell. I mean, definitely not a replacement. Maybe helping read something old or poorly commented fast? Redundant tasks on very commonplace mainstream languages and tasks?

I don't think it's useless, but if you ask it to do something by itself you can't trust that it'll work without singificant additional effort.

load more comments (11 replies)
load more comments (9 replies)
[–] Irelephant@lemm.ee 114 points 1 week ago (3 children)

Ai code is specifically annoying because it looks like it would work, but its just plausible bullshit.

[–] kkj@lemmy.dbzer0.com 43 points 1 week ago (11 children)

And that's what happens when you spend a trillion dollars on an autocomplete: amazing at making things look like whatever it's imitating, but with zero understanding of why the original looked that way.

load more comments (11 replies)
[–] captain_aggravated@sh.itjust.works 25 points 1 week ago (2 children)

Well I've got the name for my autobiography now.

load more comments (2 replies)
load more comments (1 replies)
[–] Xerxos@lemmy.ml 88 points 1 week ago (11 children)

All programs can be written with on less line of code. All programs have at least one bug.

By the logical consequences of these axioms every program can be reduced to one line of code - that doesn't work.

One day AI will get there.

load more comments (11 replies)
[–] haui_lemmy@lemmy.giftedmc.com 77 points 1 week ago (1 children)

Welp. Its actually very in line with the late stage capitalist system. All polish, no innovation.

[–] andybytes@programming.dev 20 points 1 week ago

Awwwww snap look at this limp dick future we got going on here.

[–] jubilationtcornpone@sh.itjust.works 72 points 1 week ago (1 children)
[–] Saleh@feddit.org 50 points 1 week ago (2 children)

My uncle. Very smart very neuronal. He knows the entire Internet, can you imagine? the entire internet. Like the mails of Crooked Hillary Clinton, that crook. You know what stands in that Mails? my uncle knows. He makes the best code. The most beautiful code. No one has ever seen code like it, but for him, he's a genius, like i am, i have inherited all his genius genes. It is very easy. He makes the best code. Sometimes he calls me and asks me: you are even smarter than i am. Can you look at my code?

[–] cbazero@programming.dev 23 points 1 week ago

All people say it. Tremendous code. All the experts said "No, generating formatted random text is not working code" but we did it.

load more comments (1 replies)
[–] pennomi@lemmy.world 71 points 1 week ago (20 children)

To be fair, if I wrote 3000 new lines of code in one shot, it probably wouldn’t run either.

LLMs are good for simple bits of logic under around 200 lines of code, or things that are strictly boilerplate. People who are trying to force it to do things beyond that are just being silly.

[–] Boomkop3@reddthat.com 39 points 1 week ago (8 children)

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

[–] pennomi@lemmy.world 28 points 1 week ago* (last edited 1 week 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.

load more comments (10 replies)
load more comments (7 replies)
load more comments (19 replies)
[–] SoftestSapphic@lemmy.world 57 points 1 week ago* (last edited 1 week ago) (3 children)

Watching the serious people trying to use AI to code gives me the same feeling as the cybertruck people exploring the limits of their car. XD

"It's terrible and I should hate it, but gosh it it isn't just so cool"

I wish i could get so excited over disappointing garbage

load more comments (3 replies)
[–] LanguageIsCool@lemmy.world 47 points 1 week ago (2 children)

I’ve heard that a Claude 4 model generating code for an infinite amount of time will eventually simulate a monkey typing out Shakespeare

load more comments (2 replies)
[–] ItsMeForRealNow@lemmy.world 43 points 1 week ago (24 children)

This has beeny experience as well. It keeps emphasizing "beauty" and keeps missing "correctness"

[–] match@pawb.social 39 points 1 week ago (1 children)

llms are systems that output human-readable natural language answers, not true answers

load more comments (1 replies)
load more comments (23 replies)
[–] 1984 35 points 1 week ago* (last edited 1 week ago) (3 children)

Its like having a junior developer with a world of confidence just change shit and spend hours breaking things and trying to fix them, while we pay big tech for the privilege of watching the chaos.

I asked chat gpt to give me a simple squid proxy config today that blocks everything except https. It confidently gave me one but of course it didnt work. It let through http and despite many attempts to get a working config that did that, it just failed.

So yeah in the end i have to learn squid syntax anyway, which i guess is fine, but I spent hours trying to get a working config because we pay for chat gpt to do exactly that....

[–] merc@sh.itjust.works 22 points 1 week ago (6 children)

It confidently gave me one

IMO, that's one of the biggest "sins" of the current LLMs, they're trained to generate words that make them sound confident.

load more comments (6 replies)
load more comments (2 replies)
[–] ZombiFrancis@sh.itjust.works 34 points 1 week ago

Ctrl+A + Del.

So clean.

[–] dumnezero@piefed.social 22 points 1 week ago (2 children)

Try to get one of these LLMs to update a package.json.

load more comments (2 replies)
[–] markstos@lemmy.world 20 points 1 week ago (6 children)

This weekend I successfully used Claude to add three features in a Rust utility I had wanted for a couple years. I had opened issue requests, but no else volunteered. I had tried learning Rust, Wayland and GTK to do it myself, but the docs at the time weren’t great and the learning curve was steep. But Claude figured it all out pretty quick.

load more comments (6 replies)
[–] beeng@discuss.tchncs.de 18 points 1 week ago (12 children)

Write tests and run them, reiterate until all tests pass.

[–] AnotherPenguin@programming.dev 30 points 1 week ago

Bogosort with extra steps

load more comments (11 replies)
load more comments
view more: next ›