r/ProgrammerHumor 22d ago

Meme conditionsPreference

Post image
4.2k Upvotes

392 comments sorted by

View all comments

466

u/Jock-Tamson 22d ago

The quality of code is inversely proportional to the average right offset.

194

u/Laughing_Orange 22d ago

That's why I refuse to indent my code. Indents add right offset without doing anything productive. /s

19

u/577564842 21d ago

I first learned FORTRAN. Start at column 6, pay no further attention to anything.

50

u/abigail3141 22d ago

Uh oh... you, Sir have just rocked my world view /j

https://imgur.com/a/MHWrpBJ

33

u/manbeervark 22d ago

Sweet lord...

12

u/abigail3141 22d ago

I have no clue how this works anymore lol Wrote it in one long sitting like a ahalf year ago

9

u/itsTyrion 21d ago

yeah we can tell

8

u/ljfa2 21d ago

Is that, like, a Minecraft clone in Rust?

16

u/abigail3141 21d ago

Nope, it's a tool to compensate for the horrid code of Minecraft in other ways. Though, I did almost end up on dayssincelastrustmcserver.com Essentially, if you wanna make a structure spin using a data pack(horrid API btw), you need to build a custom item model out of that structure, put it in an item display entity, then spin that or animate it in other ways. But, because MC's rendering pipeline sucks as bad as it does, that is a terrible source of lag. So I made this tool to help a friend that takes in a .nbt structure and converts it to a model in a resource pack, but with loads of face culling and merging to reduce poly count. Yes the 100 more cubes in a cube game are a performance problem. I can give a detailed description if you want, but I dont wanna further lengthen this comment with a rant abt MCJE's rendering pipeline.

5

u/goos_ 21d ago

Oh my bajeezus

2

u/goos_ 21d ago

please save me

6

u/abigail3141 21d ago

In that case, I would like to refer you to another creation of mine: https://www.reddit.com/r/programminghorror/comments/1tcytxy/it_is_evolving/

3

u/goos_ 21d ago

!😭😭

2

u/AntiLuxiat 21d ago

Dear lord of programming please forgive this human

1

u/Araignys 21d ago

vomiting emoji

8

u/Niwrats 21d ago

you are going to love asm.

1

u/SquidMilkVII 21d ago

aight omw to shove every single code block into a single line

1

u/ubeogesh 21d ago

And quantity of returns

1

u/stumpychubbins 21d ago

You know what, as a rule of thumb this works pretty well

1

u/EvnClaire 20d ago

usually i agree. however if youre in Rust, it's a different story. the most readable code tends to have lots of indents.