this post was submitted on 21 Sep 2023
1260 points (94.9% liked)

Programmer Humor

24980 readers
1521 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
[–] whileloop@lemmy.world 132 points 2 years ago (7 children)

This could be so much longer.

Killing children, class systems, so many programming language names, the ridiculous ways equality and order-of-operations are done sometimes. Plenty of recursion jokes to be made. Big O notation. Any other ideas?

[–] MxM111@kbin.social 37 points 2 years ago (1 children)
[–] Hoimo@ani.social 42 points 2 years ago (2 children)

GOTO is the only thing that makes sense. It's the "high-level" concepts like for-loops, functions and list comprehension that ruined programming.

series.append(series[k-1]+series[k-2]) for k in range(2,5)]

RAVINGS DREAMT UP BY THE UTTERLY DERANGED

[–] Vilian@lemmy.ca 15 points 2 years ago* (last edited 2 years ago) (1 children)

if goto make sense why don't you go to get some bitches

[–] newIdentity@sh.itjust.works 12 points 2 years ago* (last edited 2 years ago)

Because "get some bitches" is an invalid instruction

[–] ChickenLadyLovesLife@lemmy.world 15 points 2 years ago (1 children)

I started coding with TurboBasic, which included the helpful innovation of GOTO {label} instead of GOTO {line number}, which allowed you to have marginally-better-looking code like:

GOTO bob
...
bob:
{do some useless shit}
return

which meant you essentially had actual, normal methods and you didn't have to put line numbers in front of everything. The problem was that labels (like variables) could be as long as you wanted them to be, but the compiler only looked at the first two letters. Great fun debugging that sort of nonsense.

load more comments (1 replies)
[–] Gork@lemm.ee 32 points 2 years ago

Big Orgasm notation

[–] dukk@programming.dev 19 points 2 years ago

A monad is just a monoid in the category of endofunctors.

[–] Lightor@lemmy.world 11 points 2 years ago* (last edited 2 years ago) (1 children)

Masters and slaves

Cloning

Deploying code (that's what you do with soldiers!!!1)

Using Git to rewrite history.

Atomic values (like the bomb!)

These people are madmen.

[–] Gustephan@lemmy.world 7 points 2 years ago

One of the slave node's child process failed, so the master node sent a signal to terminate the child and restart the slave

There's pretty solid reason my research group is pushing to use "head node and executor nodes" nomenclature rather than the old-school "master node and slave nodes" nomenclature, haha

load more comments (3 replies)
[–] tias@discuss.tchncs.de 34 points 2 years ago (6 children)

I actually have that teapot and I use it several times a week.

[–] protput@lemmy.world 10 points 2 years ago (1 children)
[–] tias@discuss.tchncs.de 14 points 2 years ago* (last edited 2 years ago) (2 children)

Thanks! In computer graphics it's referred to as the "Utah teapot" because the 3D model was created at the University of Utah. But it was originally a Melitta brand teapot. It is still manufactured by German company Friesland, which I bought it from.

Unfortunately it appears they recently had a fire and their webshop is temporarily closed, but I think you can also get it off of Amazon.

load more comments (2 replies)
load more comments (5 replies)
[–] HiddenLayer5@lemmy.ml 28 points 2 years ago (2 children)

Cat is a fluffy animal, not for reading shit

[–] the_lemming@lemm.ee 8 points 2 years ago

Writing 'echo' cannot do anything. Everyone knows echo works with sound only.

Cat is a fluffy animal, and for shreading shit

[–] nyan@lemmy.cafe 25 points 2 years ago (1 children)

Enough people have thought of while (true){ print(money); } for manufacturers to have built stuff into printers to prevent that, alas.

[–] ReluctantMuskrat@lemmy.world 5 points 2 years ago

Indeed. The amount of work that's went into the prevention and ways to identify who's done it is not insignificant.

[–] Isoprenoid@programming.dev 23 points 2 years ago (3 children)

Can someone explain this joke to me

"I'm writing a recursive method with threads to optimize the CPU usage in a 0.02%"

I understand everything apart from the "in a 0.02%". What does that mean? How can something be in a percentage?

[–] obosob@feddit.uk 39 points 2 years ago

It's a nonsensical statement to us programmers too.

[–] Sheik@lemmy.world 23 points 2 years ago

I think they meant « by ».

[–] peopleproblems@lemmy.world 8 points 2 years ago (1 children)

It's a double joke. For programmers, it's pretty useless unless your in high performance computing.

If you're on the nitty gritty OS or CPU itself, 0.02% optimization can mean significant improvememt of different things but because it is otherwise unitless, it is equally useless to the reader.

load more comments (1 replies)
[–] 1024_Kibibytes@lemm.ee 13 points 2 years ago (3 children)

Increasing the CPU optimization by 0.02% does seem crazy to me. If you're going to spend time working on something, make it worthwhile. Also, isn't while(true) {print(money)} Microsoft, Apple and Amazon:s business model?

load more comments (3 replies)
[–] Kolanaki@yiffit.net 11 points 2 years ago* (last edited 2 years ago) (2 children)

while{true}{print "money"};

moneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoney

[–] funkajunk@lemm.ee 6 points 2 years ago (2 children)

moneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoney

load more comments (2 replies)
load more comments (1 replies)
[–] dylanTheDeveloper@lemmy.world 11 points 2 years ago (1 children)

I bet ATMs would have a while true print money function

[–] coloredgrayscale@programming.dev 7 points 2 years ago (1 children)

Almost:

While (hasMoney())
Print(money)

load more comments (1 replies)
[–] somegeek@programming.dev 8 points 2 years ago

Math professorss be like:

[–] Ogeon@programming.dev 6 points 2 years ago (4 children)

To make things worse, that teapot doesn't have a bottom surface.

load more comments (4 replies)
[–] spez@sh.itjust.works 6 points 2 years ago* (last edited 2 years ago) (1 children)

I always wonder what the original post was. Something like "Stop doing science!" or some shit but seriously rather than sarcastically.

[–] d_k_bo@feddit.de 29 points 2 years ago (2 children)
[–] spez@sh.itjust.works 6 points 2 years ago

Ah ha! Thanks, I thought this spawned on some conspiracy facebook group

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