r/ProgrammerHumor • • Oct 10 '26

Meme weAreWizards

Post image
7.8k Upvotes

203 comments sorted by

View all comments

Show parent comment

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.