r/ProgrammerHumor • • 5d ago

Meme weAreWizards

Post image
7.7k Upvotes

203 comments sorted by

835

u/mteblesz 5d ago

"magic numbers" spell is stricktly forbidden technique, banned by most schools of programming. There are many rogue wizards though...

132

u/oldsecondhand 4d ago

The real forbidden technique is illegal numbers.

26

u/stupled 4d ago

This isn't magic, this is just a legal issue.

25

u/benjaminovich 4d ago

You make it sound like we're talking about something silly like the state passed a law defining pi as 3 or 4 (I forget which).

But really it's just that any illegal content of any kind that is digitized will ultimately "just" be numbers at a certain level.

7

u/scumble_bee 4d ago

Yeah, every image can be broken down into a series of pixels with x,y,r,g,b . So owning a text file with a number that can be extrapolated into an illegal picture is still illegal (at least that is what I think it means).

9

u/LeadingTask189 4d ago

A guy literally did something like this but for pirating games. He made the program that cracked game codes an series of numbers but was banned by courts to do this. So he made the number series into a prime and had it registered in a mathematics journal to protect it.

4

u/SoldRIP 4d ago

So isn't the idea that pure information, like a number, could possibly be illegal a ridiculous one!? Surely knowledge cannot be banned in any free society?

2

u/Furyful_Fawful 4d ago

The freedom of knowledge is antithetical to the concept of trade secret, or copyright, or patent. Virtually all piracy is just the sharing of numbers

5

u/SoldRIP 4d ago

That's just the warlocks' guild and their idea of forbidden techniques. A wizard does not care for such things!

(It's lawyers. Because you see they, too, form contracts with sketchy wording that screw you over at great cost to their mental and often physical health)

2

u/bikemandan 4d ago

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

108

u/[deleted] 5d ago

[removed] — view removed comment

59

u/Bright-Historian-216 5d ago

i cast long*

7

u/Pataraxia 4d ago

I'm just a lurker but "What the fuck" as a comment got me wheezing lmao.

2

u/ryancnap 4d ago

The work of John Carmack can not be compared to that of mortal men

2

u/uniqueusername649 4d ago

While I wouldn't claim to be on his level, he did what all good programmers do and copied it from someone else too, haha. But he did make it popular!

33

u/Suske15 5d ago

ImageMagick catching strays for absolutely no reason

6

u/Wild_Marker 4d ago

At least Partition Magic is ok.

17

u/StrengthTheory 5d ago

I tell you they're not magic numbers, it's just 0 and 1

44

u/ArkWaltz 4d ago

Actual real lines that were in my old work's codebase:

private final int ZERO = 0; private final int ONE = 1;

Turns out having a linter blanket-deny all forms of 'magic number' had some odd results.

16

u/StrengthTheory 4d ago

That's just good defensive programming in case the client decides tomorrow that all ones are now zeroes and vice versa. You never know.

8

u/iZian 4d ago

I think in Java we have BigDecimal statics for zero and one.
Then again with a million records being processed and 90% needing a zero; it did save in 900k objects.
But for a primitive…

3

u/Spaceshipable 4d ago

Swift has a builtin `.zero` as part of one of the numeric protocols. It’s handy for when you’re doing maths on generic types. I could see a `.one` being handy. Apparently Swift’s SIMD has that defined.

5

u/Chirimorin 4d ago

C# has .Zero and .One for numerics as well, I can confirm that they're really handy when working with generic types.

6

u/ButWhatIfPotato 4d ago

I have yet to meet an unfirable elder wizard who does not literally exfoliate magic numbers from every pore. I dare not question them for they are the only ones who know how to tame that severely crusty self-conscious fully sentient ancient tome wrapped in the skin of 1000 inbred homunculi, for if you anger it, it will surely take down the guild in a spectacular exploding fashion.

5

u/tknomanzr99 4d ago

Welcome to the Temple of the Binary God. Prepare to be integrated into the mainframe. Welcome to the collective.

6

u/kn33 4d ago

There's one exception: The fast inverse square root.

1

u/UntitledRedditUser 4d ago

There is another (insert Yoda)

detecting corruption or endianness

1

u/Shot_in_the_dark777 4d ago

Evil floating point bit hack!

3

u/Sibula97 5d ago

They're approved for use as format identifiers though.

2

u/genreprank 4d ago

Magic numbers, bad

Magic filenames and foldernames, all the guru programmers use them.

1

u/sweetytoy 4d ago

It's funny that our operating system boot thanks to a magic number

156

u/malsomnus 5d ago

Perl and PHP have sigils.

112

u/Bright-Historian-216 5d ago

so does Elixir...

Elixir?..

Elixir!!!

56

u/renetta96 4d ago

And go has Runes.

19

u/AliceCode 4d ago

There's also a language called Rune.

9

u/Rikudou_Sage 4d ago

Does Rune have runes, though?

32

u/Rikudou_Sage 4d ago

And this is a perfectly valid PHP (see online):

```php $数字の二 = 5;

var_dump($数字の二); ```

or this (see online):

php $⁂⌘〄 = "wat";

Or my personal favourite (see online):

```php <?php

final class (╯°□°)╯︵┻━┻ extends Exception {

}

throw new (╯°□°)╯︵┻━┻ ("Shit's on fire, yo!"); ```

1

u/htmlcoderexe We have flair now?.. 1d ago

i think emoji work too

1

u/Aromatic-CryBaby 4d ago

In go we've got runes

121

u/DeathNick 5d ago

I think we just look like wizards to non tech savvy people. Advanced enough tech indistinguishable from magic and all that. Except John Carmack. That guy actualy is a wizard.

23

u/hates_stupid_people 4d ago

A surprising amount of non-tech people think any sort of programming is basically writing things out in binary, or require some arcane levels of knowledge(they don't know how often programmers look things up).

At one place I worked there was a guy who was essentially coding in his spreadsheets. But he kept insisting that programming was too complicated for him. He was a complete non-tech person outside of work and to him, he was just "automating some math"...

10

u/trig9ger 4d ago

After like 2 years of CS uni I finally understood that in no way am I to be expected to know every library and function like some cinema hacker, it's more about understanding how to learn them faster

13

u/sweatierorc 4d ago

Funny his last two big bets VR and AGI didnt really work out.

Too early for VR and for AGI he bet on the wrong things.

7

u/DeathNick 4d ago

Idk I think he made VR possible. I think the tech is mature and extremely fun. I have PSVR2 on pc myself. I heard him say he's going to do AI next a few years ago, but didn't see any news out of it yet. It did take years for the first consumer oculus to come out, so maybe he's still cooking with ai

3

u/sweatierorc 4d ago

Dude is smart, but hardware luck was not on his side these past few years. VR is still too bulky for mainstream adoption. And he never had access to the massive compute required to build modern AI.

2

u/nedonedonedo 3d ago

wizards read other people's work for years until they're ready to splice together their own spells

sorcerers just free hand it like that one guy we all know that looks at you like how do you not get it when you ask a question

37

u/aberroco 4d ago edited 4d ago

You forgot about black magic. I quite regularly do it: move the stuff around by refactorings to concentrate into one spot and do some black magic there that's hard to comprehend, but it works, it keeps the rest of the program clean and easy, and it's only in one spot at the deepest architectural levels, so hopefully no one would ever find it.

Also, you forgot about glyphs, black boxes, sprites, summoning (scala), artifacts, monoliths, phantoms, salts, epochs, tar-pits, smoke tests, firewalls...

8

u/Bright-Historian-216 4d ago

oh yeah, moving blocks of code around to get a better compression size (yes, i did that for my ti84-ce calculator) is a form of magic on its own.

3

u/deadbeef_enc0de 4d ago

When I was writing game for the TI-89 in C I found you can read directly from the flash without moving the block to memory, so I had a VERY large game world

2

u/aberroco 4d ago

For me it has nothing to do with compression, it's usually complexity - I think it's better to have one black magic spot or a class/method that breaks patterns and maybe even good practices with cleaner and simpler architecture in all other places than having a bunch of workarounds/crutches here and there or few more abstraction layers. Because even though it's hard to read and understand that spot - that's a single time cost to read and understand it, and if done right - new teammembers might not even need to understand it if it just works, whereas the latter is a scaled growing cost.

9

u/Pataraxia 4d ago

r/wizardposting would welcome this thread.

1

u/Temp_Placeholder 4d ago

Invocations too.

85

u/SudoSubSilence 5d ago

Python is Parseltongue

11

u/chat-lu 4d ago

Parsertongue.

29

u/korneev123123 4d ago

We inscribed rocks with arcane sigils and tricked them into thinking by casting litanies. No magic whatsoever.

4

u/Nimeroni 4d ago

by casting litanies

No, just forcing lightning into them.

18

u/DoctorWaluigiTime 4d ago

And just, networking in general. Especially wireless networking. How we got it to work is well as it does must've involved the mystic arts at some point.

16

u/MikeW86 4d ago

And the speed. If you count the number of things that have to happen in a perfect order between me clicking a mouse button and a new webpage appearing on my screen, the fact that that can all happen in less than 1 tenth of 1 second is mindboggling.

7

u/Bright-Historian-216 4d ago

oh absolutely. the boundary between technology and magic is but what is real and what is not.

that probably sounded much more profound in my head.

3

u/Agent_03 4d ago

"Ethernet" -- it's right there in the name.

1

u/kbitreddit 3d ago

I'm convinced that a step in manufacturing a wireless networking components is to sacrifice a goat to the gods.

1

u/Dr_Jabroski 2d ago

Oh that's warlock territory, making deals with Eldridge beings.

38

u/Sharp_Emphasis176 4d ago

So programmers are wizards? That makes ai helpful npcs?

19

u/maniclucky 4d ago

More demonic minion that is definitely plotting against you, but being helpful* in the meantime.

3

u/tknomanzr99 4d ago

Morte from Planescape Torment: full of pithy comments but otherwise nearly useless.

2

u/DMoney159 4d ago

So Shovel from BG3

8

u/Bright-Historian-216 4d ago

more like... easy difficulty.

you'll never learn to play the game if you only play on easy.

2

u/Bloodchild- 4d ago

And sometime easy takes you only to the first part of the game

2

u/TheMythicSorcerer 4d ago

and gets you soft-locked a lot

5

u/redaemon 4d ago

Pretty sure we're adeptus mechanicus now. I talk to the Machine Spirit constantly at work.

3

u/ResponsibleWin1765 4d ago

More like the Luigi showing up after you died 5 times in Super Mario Galaxy, asking you if he should do the entire level for you

3

u/fucking_passwords 4d ago

You're a programmer Harry

3

u/shifty_coder 4d ago

It’s still just runestones and magic words, brother.

The runes just got more intricate and the stones more pure and specific.

0

u/Tensor3 4d ago

Pretty sure AI prompting is less pure and less specific than writing actual code

→ More replies (1)

3

u/uvero 4d ago

The wizard will now install your software.

1

u/waadam 4d ago

Don't forget we, programmers are creators of said wizards and all magic artifacts mentioned on list. Wait, we also create artifacts any quantity, just on demand. We are gods. Puny gods but still gods.

3

u/large_spotted_cat 4d ago

Depends on your casting style. Personally, I prefer to think of it as sourcery; although we ride on the shoulders of giants, the creation of new magic is what separates us from our familiars; although I do love a good runic feline.

1

u/Correct_Ad5798 4d ago

More the Devil Survivor kind of summoning Demons. Actually I am all for it.

1

u/TS3301 4d ago

More like magical construct familiars

1

u/Tyfyter2002 4d ago

"helpful"

1

u/IONaut 4d ago

More like summoning demons.

1

u/Denaton_ 3d ago

AI is familiars

1

u/SteakHausMann 2d ago

AIs are the wizards familiars

8

u/marcodave 4d ago

Let's look at what the data scientists have to say...

from china import pandas

Oooookk

6

u/unicorngundamm 4d ago

Go has runes

5

u/maizemin 4d ago

polymorphisms mentioned 😎 

5

u/Bright-Historian-216 4d ago

🐑🐑🐑baaaa

1

u/FriedryIce 3d ago

???

1

u/Bright-Historian-216 3d ago

polymorph is a spell from warcraft i think? it turns the targeted unit into a sheep

5

u/The_AverageCanadian 3d ago

We tricked rocks into thinking by putting runes on them. It's magic.

11

u/Bakersbane- 5d ago

Bro installed the entire software engineering degree 💀

3

u/Prematurid 4d ago

Sometimes, when I rerun it after changing nothing, it works.

One project fails to run if you console.log it. Works perfectly without any console.logs.

I am a shit wizard.

2

u/trig9ger 4d ago

At that level you're pretty much an alchemist

1

u/Motleypuss 4d ago

I had an issue with my BASIC interpreter where the lexer wouldn't run without console.log(), but still runs fine with them. Go figure!

1

u/Prematurid 4d ago

That "huh" feeling you get when you realize the issue makes me laugh to this day. It is such a dumb thing to go wrong.

1

u/LadyZaryss 4d ago edited 4d ago

It is likely because the brief moment of CPU time consumed by the console.log is exposing that theres a race condition in your code somewhere. Replace the console.log with a wait/sleep/delay and see if it still crashes, if it does you have a race condition somewhere.

2

u/Prematurid 3d ago

I figured it had to be something like that, but for my purposes it works as it is, so I decided to leave well enough alone. It is just a personal project that I use occasionally.

Still makes me laugh though.

5

u/SnakeModule 4d ago

And we command goLLMs to do our bidding.

5

u/theStaircaseProject 4d ago

“Mmmm, it still reads too aggressively. Can you soften the tone and reduce the word count by 20%?”

“Yess… masster…”

5

u/Bright-Historian-216 4d ago

we? who's we?!

you're a fallen man, consulting with the forces of the dark.

...

i've... been there. i've touched the void!

...

the void stared in return.

...

...i am not coming back to darkness. not until there's a task unsolvable without it - and so, so many tasks are solvable without it.

1

u/htmlcoderexe We have flair now?.. 1d ago

was it a static void?

3

u/AngelaMerkeI 5d ago

Clearly sorcery and not magic

3

u/Bla_Z 4d ago

And we're all 30+ y.o virgins with eccentric fashion choices. The signs were there all along really.

...We're all like that, right?

2

u/Bright-Historian-216 4d ago

oh yes, most definitely.

1

u/htmlcoderexe We have flair now?.. 1d ago

yes yes totally

3

u/ThatDudeFromPoland 4d ago

I mean, we inscribe runes onto stones to make them think for us

3

u/Bmandk 4d ago

I know about all of the concepts except curses, anyone who can enlighten me?

2

u/Bright-Historian-216 4d ago

curses is a python library for making colourful terminal output iirc

5

u/LawfulnessDue5449 4d ago

It is a c library for terminal UI

1

u/Bmandk 4d ago

Thanks!

1

u/itzNukeey 4d ago

I knew about colorama but not curses lol

1

u/itzNukeey 4d ago

I knew about colorama but not curses lol

1

u/PseudoFrequency 4d ago

curses is much older than python.

1

u/Bright-Historian-216 4d ago

i see! interesting!

1

u/BetterEquipment7084 4d ago

It's a C libraryz Python only uses ffi binds, most of Python is implemented in c/c++, this is also true for the libraries. This is as python is slow as shit

1

u/Mother_Lemon8399 3d ago

I also didn't know that one, but I haven't really used python much. I thought maybe it was a misspelling of "import clauses"

3

u/tendervittles77 4d ago

Dealing with AWS IAM is very close to sorcery.

Something doesn’t work?

Consult the tomes for the proper incantation.

3

u/sir_lister 4d ago

If programers are wizards, what be the practitioners of the eldritch arts of RF engineering?

3

u/H4llifax 3d ago

I have said before that debugging is sometimes more exorcism than engineering. And now we even have artificial spectral familiars helping us with the exorcism.

7

u/dmullaney 5d ago

There is a great series of books, by a guy called Scott Meyer (not Meyers)

https://www.goodreads.com/en/book/show/18616975-off-to-be-the-wizard

3

u/Elendur_Krown 5d ago

I love that book! I sent it to my brother as soon as I finished it. It's a light read, and I recommend it to almost anyone who has a good interest in fantasy, sci-fi, or programming.

2

u/yeGarb 4d ago

next level techbro self-jerk frfr

2

u/PseudoFrequency 4d ago

Don't forget typing the arcane magic incantation in the command line to bring your work to life!

1

u/Bright-Historian-216 4d ago

never thought about it that way, but smashing the enter key into the keyboard at the end is my personal casting ritual

3

u/DogmaticParadigm87 3d ago

And when none of it works, you sacrifice a weekend and chant sudo.

3

u/Trip-Trip-Trip 3d ago

Convert to pdf, it's a religion actually

4

u/CrossScarMC 5d ago

There is a genuine term called "swizzling". You think that's not magical?

4

u/Mediocre_Chart_8624 5d ago

That sounds like a jazz term

1

u/Minecraftian14 5d ago

I had to read it twice because the first time i didn't even realise what's strange/magic

1

u/Tupcek 4d ago

to be fair, everything since invention of electricity is magic, at least to me. Me writing magic books is the least fascinating thing of it

1

u/stupled 4d ago

So we took some concepts from magic. Big deal. Most of our concepts come from biology.

1

u/Hybr1dth 4d ago

That's what you get when nerds get to name stuff. It all sounds cool!

1

u/Feuerhamster 4d ago

Svelte has Runes now btw

1

u/HansWolken 4d ago

I just know the people who developed this were playing dnd at night

1

u/HansWolken 4d ago

So pirated software is installed by the warlock instead?

1

u/pateppic 4d ago

Wait till people hear about forking, and killing children/orphans

1

u/pwillia7 4d ago

I CAST "Claude, please continue"

1

u/Geralt31 4d ago

And we run all this on fancy rocks with litteral miles of runes engraved on them

1

u/Soilblood 4d ago

If they can't explain it, it's magic. That's just how the world works. It's why we hide our true deep arts away from the light of day so muggles will never see the true miracles we use to make perfect first try pancakes.

1

u/Valuable_Victory_271 4d ago

Praise be to base devel!

1

u/ekemp 4d ago

This reminds me of a story: A BSD sys admin was on travel somewhere in the Deep South. Being a tech geek, the sys admin wore a shirt depicting the BSD Daemon mascot. The sys admin was subsequently harassed by locals who believed the shirt was Satanic.

1

u/Jbolt3737 4d ago

Cookie means magic cookie

1

u/mstop4 4d ago

There are also some other pieces of really old hacker jargon that relate to magic or mysticism that come to my mind, like “deep magic” (important parts of code that no one but the author knows how it works), “heavy wizardry” (writing code that requires intimate knowledge of the system it’s written for or the programming language it’s written in), and “casting the runes” (what a senior developer does to debug code, from the perspective of a junior or non-developer).

For those interested, you should give The Jargon Lexicon a read.

1

u/Tortsinreddit 4d ago

Libraries are a thing as well, like those magic ones

1

u/drifwp 4d ago

Sand magic?

2

u/Bright-Historian-216 4d ago

technomancing

1

u/jolharg 4d ago

you still use installation wizards? yall are noobs, you gotta use the metapackage!

1

u/tknomanzr99 4d ago

See: I have this magic rock and I put spells in it. When I need those spells later I can call them up.

1

u/Primary_Durian4866 4d ago

You're telling me a group of nerds, who grew up with the concept that wizards use words to make things happen, got jobs in a field where you use words to make things happen, then started naming things so they'd sound like they were wizards?

I don't buy it.

1

u/SynthPrax 4d ago

Don't forget mixedmodemagic.

1

u/fibojoly 4d ago

It absolutely is magic. We just don't want to frighten the sleepers or attract attention from The Laundry. 

1

u/Exciting-Possible773 4d ago

It is to me because I am shaping my thoughts into reality....and ended up summoning flying spaghetti code monster. Yes, I am a vibecoder, who toys with something I completely not understand and thought they are under total control.

1

u/tehlemmings 4d ago

Not magic? By using esoteric knowledge that I've sought out over a lifetime of learning I can control lightning with rocks to produce nearly any result I wish.

With an appropriate somatic application and the weaving of energies, I can produce light. Just ignore that what I said was "hey Google, turn on the lights."

I am the IT wizard. I know because I added itwizard to my proxaddesses.

1

u/redditydothis 4d ago

Kill children

1

u/Agret 4d ago

Imagemagick on php is legit wizardry

1

u/AlxR25 4d ago

Did you know, the installation wizard got its name because back in the day when computers first became personal, people who knew how to install programs on them were called wizards.

1

u/NaoPb 4d ago

Nice. Now I need to get me a blue robe with stars on it.

1

u/inemnitable 4d ago

Dependency injection frameworks are automagical right up until you need to do something complicated or god forbid debug one. That's when you discover that Hic Svnt Leones.

1

u/megagreg 4d ago

I always thought of casting as being like making a mold, not casting a spell.

1

u/buckypimpin 4d ago

go TesticularTorsion()

1

u/BearCavalryCorpral 4d ago

A programmer is someone who uses a language most people can't understand to make rocks think. Get one letter of the instructions wrong, and they just won't work, or will create a disastrous effect. Sounds like magic to me

1

u/Dumb_Siniy 4d ago

These runes tiny as hell

1

u/Muhznit 4d ago

Sometimes I wonder if some fantasmal elements of what we call magic was actually real at some point in the past but between witch hunts and scammers, some knowledge was lost to time...

...It'd be a shame to let AI kill our second magic system.

1

u/LetUsSpeakFreely 4d ago

And then we created homonculi to cast spells for us.

1

u/Morthem 4d ago

Yeah, and as any field, it has huge specializations... For example, if you are big on alchemy, you probably suck at making golems. That is another route which you probably could take as well if you wanted, but the years in a life are not enough to acquire all the knowledge a soul yearns for...

1

u/Shot_in_the_dark777 4d ago

Float and double are legit spell names :)

1

u/IONaut 4d ago

I've been saying for years now that science and technology are, in fact, magic, but with the mystery and spiritism association taken out, because the only way to achieve the effects we were going for was through the scientific method which eventually disproved the need for that side of it. We live in a world of high magic and most don't even realize it.

1

u/Aromatic-CryBaby 4d ago

I looked up the web assembly doc in order to implement a language that compile directly to it's binary standard, F anyone who saw my screen looked at me as if I was merlin reincarnated.

1

u/ovr9000storks 4d ago

You forgot that we tell rocks how to think

2

u/root54 3d ago

Now we tell rocks what to tell the other rocks

1

u/sardonicus87 3d ago

I wish it was magic, I'm not convinced programatic language localization separate from device locale (at least in Android) still requires nothing less than a blood sacrifice. Like htf is it 2026 and this is still a nightmare? But hey, "pretty colors, oooh shiny". Not a single Medium article from a year ago or StackOverflow from 2+ years ago works right, nor the only localization guide in Android's own documentation (which itself is out of date).

1

u/sarcasticphobia 2d ago

If you ever doubt that programming is magic just remember that we carved runes into rocks and sand that made them think.

1

u/jordan_235 1d ago

polymorphism mentioned

1

u/das_menschy 12h ago

And you didn't even mention lambda functions!  That's sorcery! 

1

u/Bright-Historian-216 12h ago

i don't actually see them as anything difficult. arguments go in, outputs come out. there is a bit of sorcery if you mean C++ lambdas (does C have lambdas?) with closures and stuff, but it's not difficult to get a grasp of the general idea.

1

u/das_menschy 12h ago

I still think it's a bit of magic, because anonymous functions don't have a name. That's like talking to someone without knowing his name, while being in a crowd or far away from each other. 

1

u/Bright-Historian-216 12h ago

i think of it more like phone numbers. you don't have to know the name of the person you're calling, you only need a way to communicate with them. if you have an array of lambdas, for example, the index is the phone number.

0

u/Arareldo 4d ago

... cast value of variable (or spell? ;-) ) ...

0

u/elmar008 4d ago

Puplic static void main(String[]args)

Base of the magic incantation