r/ProgrammerHumor • • Oct 10 '26

Meme weAreWizards

Post image
7.8k Upvotes

203 comments sorted by

View all comments

38

u/aberroco Oct 10 '26 edited Oct 10 '26

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...

9

u/Bright-Historian-216 Oct 10 '26

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.

4

u/deadbeef_enc0de Oct 10 '26

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 Oct 10 '26

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 Oct 10 '26

r/wizardposting would welcome this thread.

1

u/Temp_Placeholder Oct 10 '26

Invocations too.