this post was submitted on 07 Mar 2024
483 points (99.2% liked)

Programmer Humor

19572 readers
1787 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 1 year ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] TxzK@lemmy.zip 211 points 8 months ago* (last edited 8 months ago) (5 children)
[–] Synthuir@lemmy.ml 135 points 8 months ago (2 children)

In the soap opera General Hospital, Colonel Sanders of KFC makes a guest appearance because someone is trying to kill him to obtain the secret recipe of 11 herbs and spices. He knows Malbolge and is able to disarm the destruct sequence.

… I… what?

[–] hex@programming.dev 24 points 8 months ago (1 children)
[–] Synthuir@lemmy.ml 8 points 8 months ago

Well, I wasn’t kidding, but I put about a 50% chance that someone had just vandalized the wiki page…

Thanks for finding that, absolutely golden lol

[–] Wizard_Pope@lemmy.world 15 points 8 months ago (1 children)

That soap opera apparently has 15000 episodes and has been airing since 1963....

[–] CanadaPlus@lemmy.sdf.org 10 points 8 months ago* (last edited 8 months ago) (1 children)

So you're saying that might not even be the craziest episode?

[–] Wizard_Pope@lemmy.world 7 points 8 months ago

The chance of that is definitely not negligible

[–] morrowind@lemmy.ml 33 points 8 months ago

This is peak programming. That's it. It's done. We can pack up and go home now.

[–] _edge@discuss.tchncs.de 27 points 8 months ago

Sounds like Javascript and co-pilot to me.

[–] MonsiuerPatEBrown@reddthat.com 9 points 8 months ago (1 children)
[–] Ghyste@sh.itjust.works 9 points 8 months ago* (last edited 8 months ago)

Got you covered, friend.

[–] Grass@sh.itjust.works 8 points 8 months ago

Fuck... all the big tech corps got some catching up to do

[–] Bubs@lemmings.world 134 points 8 months ago (7 children)

Apparently, this is the code for a Hello World program in Malbolge:

(=<#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:H%c#DD2^WV>gY;dts76qKJImZkj

[–] LostXOR@fedia.io 116 points 8 months ago (2 children)

Looks like the backticks in the program messed up the formatting a bit, here's it with fixed formatting.

(=<`#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj

Not that it's any more intelligible. :D

[–] brbposting@sh.itjust.works 13 points 8 months ago (8 children)

What steps did you take to fix the formatting?

(Save me the Unicode identifier / dive into console :) )

[–] LostXOR@fedia.io 13 points 8 months ago

I just grabbed the original program from Wikipedia and put it in a code block.

load more comments (7 replies)
[–] FreshLight@sh.itjust.works 5 points 8 months ago

Ah, yes! Much better!

[–] mox@lemmy.sdf.org 83 points 8 months ago

Huh. Looks just like Perl.

[–] Shyfer@ttrpg.network 5 points 8 months ago
[–] yetAnotherUser@lemmy.ca 4 points 8 months ago

And I've heard it took years until someone managed to do it

[–] mrkite@programming.dev 3 points 8 months ago

Mom, put down the phone, I'm using the modem!

load more comments (1 replies)
[–] PhlubbaDubba@lemm.ee 67 points 8 months ago (1 children)

The Base3 arithmetic alone makes me deeply upset

Base36 is where it's at! Super divisibility, 0-Z keyspace, and "10" is a Square that's also the product of two squares.

Plus you can count to "40" (144) on your hands!

[–] Pogogunner@sopuli.xyz 20 points 8 months ago (3 children)

How do you count in base36 on your hands? I seem to only have 10 (decimal notation) fingers

[–] ShaunaTheDead@fedia.io 29 points 8 months ago (2 children)

You can count up to 1023 in base 2 using your fingers to represent 0s and 1s.

[–] PhlubbaDubba@lemm.ee 16 points 8 months ago (3 children)

In theory yes, in practice...fingers don't like cooperating with the combinations of bent and up that you can get by doing that

[–] magikmw@lemm.ee 6 points 8 months ago

Yeah, fingers have a strong union.

[–] mnemonicmonkeys@sh.itjust.works 3 points 8 months ago

Speak for yourself

Hypermobility ftw

[–] LazerFX@sh.itjust.works 2 points 8 months ago

I do it regularly... I particularly like 4.

In all seriousness, I use it when I need to time something - 32 on one hand means one minute (approximately) with two rotations. I started when trying to determine if my daughter was asleep, waiting for a minute after she'd last moved or talked, and I didn't want a screen or light or noise to wake her (she's always been hard to get to sleep).

So - yeah it's a tiny bit tricky to do some combos, but no more than touch typing.

[–] Pogogunner@sopuli.xyz 2 points 8 months ago

I understand this, but I didn't know how one would count up to 36 the first time around. PhlubbaDubba is using joints in their fingers to get additional objects to increment on. If we only used our fingers, we could only get to 10

[–] xigoi@lemmy.sdf.org 14 points 8 months ago (1 children)
[–] PhlubbaDubba@lemm.ee 7 points 8 months ago

Using your thumbs as pointers, count the joints in your fingers on one hand, that gets you to 12, use the other hand's finger joints to count the thirds within 36, with 4 fingers on the other hand, that's "40"

[–] hades@lemm.ee 51 points 8 months ago

Despite this design, it is possible to write useful programs.

Interestingly, this applies to C++ too.

[–] ThePyroPython@lemmy.world 25 points 8 months ago (3 children)

So is there a 9th circle? Would that be a programming language where the only way to compile would be to speak op-codes out loud in the correct sequence & cadence into a microphone?

[–] force@lemmy.world 9 points 8 months ago (1 children)

oh my god don't give them any ideas for tonal programming languages

[–] Natanael@slrpnk.net 5 points 8 months ago* (last edited 8 months ago)

Too late, take a look at teletext and RDS for radio, and also literally the very first cable free TV remote controls

load more comments (2 replies)
[–] Sibbo@sopuli.xyz 7 points 8 months ago

Looks interesting. Except for the fact that an instruction is modified after execution, this is quite simple in the end. Unless I missed something. But yeah, self-modifying instructions makes loops really hard.

[–] baseless_discourse@mander.xyz 2 points 8 months ago (2 children)

"counter-intuitive crazy operation" meh, we already have that, it is called Haskell.

[–] PoolloverNathan@programming.dev 6 points 8 months ago (3 children)

Haskell's crazy operation is intuitive though. Assuming you're talking about >>=, it's just a generalized flatMap.

load more comments (3 replies)
[–] CanadaPlus@lemmy.sdf.org 5 points 8 months ago (1 children)

Haskell is abstract, and very different from other popular languages, but I actually find it very intuitive. At the very least, the type system makes it extremely predictable.

[–] baseless_discourse@mander.xyz 7 points 8 months ago* (last edited 8 months ago) (1 children)

I didn't imagine a joke would attract this many people defending Haskell. LOL.

I personally would say I hate Haskell the least among most of the PL I know, maybe except ocaml. Haskell is probably the second if not the most popular programming language (not including proof assistant) in my field, next to Ocaml; and I have been teaching it for couple years. My work is also heavily involved with category theory, so I don't personally mind the category theory jargon.

But all of these doesn't mean Haskell is without its flaws. For this post in particular, I am referring to one of the long standing debate in the haskell community of whether Haskell user and developer has a tendency to overuse exotic infix operators: https://wiki.haskell.org/Haskell_programming_tips/Discussion#Use_syntactic_sugar_wisely

[–] CanadaPlus@lemmy.sdf.org 2 points 8 months ago* (last edited 8 months ago) (1 children)

Haha, an actual category theorist! You should have gone with "we have more than one of those in Haskell" or something, then. As it is, it really just reads like someone who thinks higher-order functions are too hard of a concept, and that the whole language is therefore garbage.

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