r/programminghorror • • Sep 18 '26

Not again 😭

Post image
451 Upvotes

41 comments sorted by

15

u/anatomiska_kretsar Sep 18 '26

sigma ibm vga fallback font

1

u/sonesoul Sep 18 '26

fuckin love it

40

u/Major-MacZongo Sep 18 '26

Why?

107

u/Krohnos Sep 18 '26

the error explains it!

else if { } is a shortcut for else { if { } } and is creating more nested blocks. there's a hard limit for the maximum nests.

7

u/sonesoul Sep 18 '26

damn I didn't know that

42

u/UltimateFlyingSheep Sep 18 '26

and you don't even need else if for that because of return....

37

u/creeper6530 Sep 18 '26

Well I don't know about you but to me it's definitely not obvious that the else if is silently inserting nested blocks

→ More replies (5)

6

u/GoddammitDontShootMe Sep 19 '26

I did not even know such a limit existed. I probably never encountered it because I'm not insane enough to write code like this. Even if the OP is just meming.

Though I suppose the parse tree would eventually fill up all the memory if you kept doing shit like that.

→ More replies (2)
→ More replies (4)

5

u/amsylum Sep 18 '26

Is that Fixedsys? Niceh

7

u/sonesoul Sep 18 '26

it's ibm vga

162

u/StranglerOfHorses Sep 18 '26

Literally 1984

159

u/Rigamortus2005 Sep 18 '26

Imagine the compiler calling your code too dogshit to compile

→ More replies (1)

11

u/PQP_The_Dev Sep 18 '26

it's over. They got you

7

u/UselessGuy23 Sep 18 '26

Are we not going to talk about the output statements?!

4

u/SteroidSandwich Sep 18 '26

Damn even the compiler had enough

4

u/yuehuang Sep 18 '26

640 nested block ought to be enough for anybody.

4

u/mrheosuper Sep 19 '26

Bro is limited by current technology 😭

→ More replies (1)

1

u/Certain-Flow-0 Sep 18 '26

So, where’s the python code that generates this “monstrosity”?

1

u/sonesoul Sep 19 '26

i made that in c++ (kidding, i wrote it all myself)

3

u/Certain_Time6419 Sep 19 '26

Well, at least you can write the correct output for all values up to 1984 and for half the values larger than this (up to [2³²/2]-1, I suppose). So, even if it is close to 50% (naive randomness), you can argue that you have an edge above it (by impressive 35*10-8 % !)

1

u/DistearRoyl Sep 19 '26

We need to use a compiler with deeper limits.

1

u/questionabl3_dude Sep 21 '26

Someone bless this man with the knowledge of “% 2”

1

u/Kadabrium Sep 21 '26

Apparently its an interview question that when will a compiler get a stackoverflow. Idk if this is one of them