this post was submitted on 11 Apr 2025
1036 points (99.5% liked)

Programmer Humor

22314 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
[–] JackbyDev@programming.dev 24 points 4 hours ago (1 children)

This symbol isn't needed for spells this long, but it's considered best practice and other wizards will make fun of me for not including it, even though it isn't needed.

[–] igg@lemmy.world 3 points 4 hours ago
[–] Duke_Nukem_1990@feddit.org 22 points 16 hours ago

Who is the artist?

[–] firelizzard@programming.dev 18 points 17 hours ago* (last edited 8 minutes ago) (4 children)

If you’re adding code you don’t understand to a production system you should be fired

Edit: I assumed it was obvious from context that I’m referring to copy-pasting code from stack overflow or an LLM or whatever without knowing what it does but apparently that needs to be said explicitly.

[–] Celestus@lemm.ee 5 points 1 hour ago (1 children)

Never use libraries you don’t contribute to in Production

[–] firelizzard@programming.dev 2 points 20 minutes ago

There's a huge difference between copy-pasting code you don't understand and using a library with the assumption that the library does what it says on the tin. At the very least there's a clear boundary between your code and not-your-code.

[–] perestroika@lemm.ee 6 points 2 hours ago (1 children)

I really like to build from zero, but some things are better copied, no matter if you fully understand them or fall short. :)

For example, I'm not qualified to check if Hamilton and Euler were correct - I only do as they explained, and later double-check the output against input.

[–] firelizzard@programming.dev 2 points 9 minutes ago

I didn't say never copy and paste. I'm saying when you push a commit you should understand what all the LOC in that commit do (not counting vendored dependencies). If you don't understand how something works, like crypto (not sure what Hamilton or Euler refers to in this context), ideally you would use a library. If you can't, you should still understand the code sufficiently well to be able to explain how it implements the underlying algorithm. For example if you're writing a CRC function you should be able to explain how your function implements the CRC operations, even if you don't have a clue why those operations work.

[–] JackbyDev@programming.dev 12 points 4 hours ago (1 children)

Many times the code we work on is built in abstractions we don't know about from top to bottom.

[–] firelizzard@programming.dev 1 points 18 minutes ago

If you are submitting work, you should understand how the code you're submitting works. Sure, you don't have to know exactly how the code it calls works, but if you're submitting code and there's a block of code and you have no clue how that block works, that's a problem.

[–] courval@lemmy.world 9 points 15 hours ago (4 children)

So you code everything in Assembly from scratch?

[–] Jankatarch@lemmy.world 7 points 10 hours ago (1 children)

No I just read the stack overflow guy's explanation and the other small comments around and they explain it.

[–] JackbyDev@programming.dev 3 points 4 hours ago

Closed as duplicate

[–] firelizzard@programming.dev -2 points 4 hours ago (1 children)

Are you seriously trying to equate "I don't know which instructions this code is using" to "I copied code I don't understand"? Are you seriously trying to say that someone who doesn't know how to write x = a + b in assembly doesn't understand that code?

[–] JackbyDev@programming.dev 11 points 4 hours ago (1 children)

No, they're pointing out that it's a little silly to expect everyone to understand each and every later of abstraction fully before deploying code.

[–] firelizzard@programming.dev 1 points 16 minutes ago* (last edited 15 minutes ago)

I said you need to understand what the code you wrote (as in, LOC that git blame will blame on you) does. Not that you need to fully understand what the code it calls does. It should be pretty obvious from context that I'm referring to copy-pasting code from stack overflow or an LLM or whatever without knowing what it does.

[–] SaharaMaleikuhm@feddit.org 3 points 10 hours ago (1 children)

I don't understand Assembly. Straight up binary only for me.

[–] JackbyDev@programming.dev 1 points 4 hours ago (1 children)

Same here. Assembly is a little too high level for me. I don't like the assembler guessing what I meant. I like telling processors exactly what to do.

Honestly, modern CISC processors are also a little high level if you think about it. I don't want the processor guessing what I meant to tell it. I like telling them exactly what to do.

[–] Korhaka@sopuli.xyz 1 points 2 hours ago

The processor is just going to guess wrong and might occasionally waste a few cycles!

[–] ByteJunk@lemmy.world 1 points 9 hours ago

In what world is assembly more readable or easier to understand?

[–] lime@feddit.nu 49 points 1 day ago (11 children)

shout out to the trickster mod which is basically "what if magic is a lisp"

[–] JackbyDev@programming.dev 1 points 4 hours ago

Omfg I read all of this for far to long thinking you meant casting spells with a lithp lisp. Like you might cast similarly named spells randomly. "Must be Skyrim, cool. Click! Minecraft doesn't have spells, what?"

[–] Custodian6718@programming.dev 1 points 4 hours ago (1 children)

How does it compare to hex Casting? I Tried getting into it but it seemed a Bit weird

[–] lime@feddit.nu 1 points 3 hours ago (1 children)

hex casting is stack-based and has lots of different blocks for doing different things. trickster is fully functional and has very few blocks, but isn't as well balanced for use with other mods. at least i think that's the case.

[–] Custodian6718@programming.dev 1 points 6 minutes ago

So does that mean trickster is easier to get into?

[–] DerArzt@lemmy.world 24 points 1 day ago (1 children)

My brother in Christ, why must you inform us of cool things and leave us with less free time? 🫠

[–] lime@feddit.nu 16 points 1 day ago
load more comments (8 replies)
[–] ilinamorato@lemmy.world 102 points 1 day ago (2 children)

"Oh, dude, you gotta stop using TJ's Action Rune of Changed Files. That runebook has a backdoor to one of the hells now. Didn't you see the patch notes?"

[–] JackbyDev@programming.dev 6 points 4 hours ago

Ugh, look, I get it. I know TJ's Lesser Action Rune of Changed Files that the Greater version does now, but TJ's price structure is bullshit and I'm not paying for Greater just because he refuses to "support" us users of Lesser. I don't even have a damn Portal, much less a Summoning Circle! Why are you so worried about a backdoor to the hells? Unless I connect this sigil to the weave nothing is going to come in or out. This sigil is only for monitoring the moisture content of my garden by way of a spell scroll attached. As we both know, scrolls and sigils use two different elements to communicate. One is gold ink and the other is silver ink. I have to use TJ's Action Rune of Changed Files to see if the document has changed due to moisture. The scroll cannot directly talk to my watering golem's receiving crystal.

[–] Toribor@corndog.social 64 points 1 day ago (1 children)

I never update my spell book and nothing bad has ever happened.

Help. Infernal imps somehow got inside my sanctum and used my scrying orb to send rude messages to the rest of the Circle.

[–] ilinamorato@lemmy.world 25 points 1 day ago

You got lucky. Somebody snuck a wyrm into my codex that got all of my thralls mining for coin bits.

[–] Maldaya@sh.itjust.works 24 points 1 day ago (1 children)

The manga (soon to be anime) Witch Hat Atelier's magic is kinda like this. Also it rocks so I definitely recommend it.

[–] momocchi@lemmy.world 6 points 1 day ago (1 children)

So happy its getting an anime, such a gorgeous manga

[–] deus@lemmy.world 5 points 1 day ago

I really hope it does the manga justice. It would be a tragedy if people ended up dismissing this series because of a subpar anime adaptation.

[–] LovableSidekick@lemmy.world 15 points 1 day ago* (last edited 1 day ago)

Pretty much most chem students doing labs.

[–] Olgratin_Magmatoe@slrpnk.net 16 points 1 day ago* (last edited 1 day ago) (1 children)

🎵 Kier, chosen one, Kier.

Kier, brilliant one, Kier.

Brings the bounty to the plain through the torment, through the rains,

Progress, knowledge show no fear,

Kier, chosen one, Kier. 🎵

[–] seliaste@lemmy.blahaj.zone 5 points 17 hours ago

Was looking for that comment

[–] s12@sopuli.xyz 30 points 1 day ago (2 children)

Syntax error: Mismatched △
FATAL ERROR! DRAIN ARCANE ENTRY IMMEDIATELY!
ARCANE ENERGY COULD NOT BE DRAINED AND WILL BE DISPERSED WHEN PROCESS IS TERMINATED.
Kernel panic: Syntax error in interpreted kernel code. Spell OS 0.2.437 will now terminate.

*Firery explosion

“And that’s the most efficient way we’ve found of casting fireball. We’re still working on getting round to finding a more elegant solution.”

[–] ilinamorato@lemmy.world 11 points 1 day ago

"Thank you for playing Wing Commander"

load more comments (1 replies)
[–] entwine413@lemm.ee 27 points 1 day ago (5 children)

I've often wondered about who discovered arcane symbols/rituals.

Like, did some prehistoric guy just sit there drawing in the dirt until something happened?

[–] einkorn@feddit.org 20 points 1 day ago

My head canon is that creatures such as ghosts, demons, djinns, ... enter our mortal realm willingly from time to time and sometimes form a connection with a person, who they then teach how to summon them in times of need. This knowledge is then passed down.

So effectively otherworldly creatures are tourists who gave a local their number and now they get bothered by their greatgreatgreatgreatgrandkids.

[–] seemefeelme@infosec.pub 1 points 16 hours ago

It was just probably just some poor guy with magical thinking OCD. "If I don't repeatedly draw symbols in the dirt, my whole family will die."

load more comments (3 replies)
[–] Toribor@corndog.social 16 points 1 day ago* (last edited 1 day ago)

Normally I could do this ritual with a single symbol but there is no support for primordial glyphs in this arcane framework unless you rewrite the whole thing in Elder Speech.

[–] peoplebeproblems@midwest.social 5 points 1 day ago (1 children)

Man this is just another great example of why I think software is essentially magic.

At the root of it, the hardware, it's magic smoke. It's all based on magic from that point up - because the layer below the one you are using "works because it does."

[–] TheOakTree@lemm.ee 7 points 1 day ago (4 children)

If writing software makes you some sort of magician then writing in assembly should surely mean you are a cleric or warlock.

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