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

Programmer Humor

23612 readers
1998 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
[–] Irelephant@lemm.ee 114 points 6 days 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 6 days ago (9 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 (9 replies)
[–] captain_aggravated@sh.itjust.works 25 points 6 days 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 87 points 6 days ago (3 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.

[–] Lemminary@lemmy.world 17 points 6 days ago (1 children)

On one line of code you say?

*search & replaces all line breaks with spaces*

[–] Szyler@lemmy.world 2 points 2 days ago

Fired for not writing the quota number of lines even junior devs manage to hit.

[–] Nalivai@lemmy.world 13 points 5 days ago (1 children)

The ideal code is no code at all

load more comments (1 replies)
[–] gmtom@lemmy.world 12 points 6 days ago (3 children)

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

The humble "Hello world" would like a word.

[–] Amberskin@europe.pub 21 points 6 days ago (2 children)

Just to boast my old timer credentials.

There is an utility program in IBM’s mainframe operating system, z/OS, that has been there since the 60s.

It has just one assembly code instruction: a BR 14, which means basically ‘return’.

The first version was bugged and IBM had to issue a PTF (patch) to fix it.

[–] DaPorkchop_@lemmy.ml 9 points 5 days ago (1 children)

Okay, you can't just drop that bombshell without elaborating. What sort of bug could exist in a program which contains a single return instruction?!?

load more comments (1 replies)
load more comments (1 replies)
load more comments (2 replies)
[–] SoftestSapphic@lemmy.world 57 points 6 days ago* (last edited 6 days ago) (2 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

[–] person420@lemmynsfw.com 11 points 5 days ago (1 children)

You definitely could use AI to code, the catch is you need to know how to code first.

I use AI to write code for mundane tasks all the time. I also review and integrate the code myself.

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

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

[–] andybytes@programming.dev 20 points 6 days ago

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

[–] pennomi@lemmy.world 71 points 6 days 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 6 days ago (8 children)

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

[–] pennomi@lemmy.world 28 points 6 days ago* (last edited 6 days 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)
[–] beeng@discuss.tchncs.de 18 points 5 days ago (2 children)

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

[–] AnotherPenguin@programming.dev 29 points 5 days ago

Bogosort with extra steps

[–] CanadaPlus 16 points 5 days ago* (last edited 5 days ago) (1 children)

That doesn't sound viby to me, though. You expect people to actually code? /s

[–] aeshna_cyanea@lemm.ee 10 points 5 days ago (9 children)

You can vibe code the tests too y'know

load more comments (9 replies)
[–] LanguageIsCool@lemmy.world 47 points 6 days 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)
[–] 1984@lemmy.today 35 points 6 days ago* (last edited 6 days 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 6 days 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)
[–] fibojoly@sh.itjust.works 18 points 6 days ago

Man, I can't wait to try out generative AI to generate config files for mission critical stuff! Imagine paying all of us devops wankers when my idiot boss can just ask Chat GPT to sort all this legacy mess we're juggling with on the daily!

load more comments (1 replies)
[–] ZombiFrancis@sh.itjust.works 35 points 6 days ago

Ctrl+A + Del.

So clean.

[–] ikidd@lemmy.world 9 points 5 days ago* (last edited 5 days ago) (1 children)
[–] markstos@lemmy.world 20 points 6 days 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)
[–] TheReturnOfPEB@reddthat.com 17 points 6 days ago* (last edited 6 days ago) (1 children)

I'm pretty sure that is how we got CORBA

now just make it construct UML models and then abandon this and move onto version 2

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