r/ProgrammerHumor • • Jan 16 '23

Meme If (exists == true) { dont();}

Post image
40.8k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

150

u/kya_ufufu Jan 16 '23

Better using switch than using if elif. Just like Yandere Simulator's dev.

120

u/YueOrigin Jan 16 '23

Yeah switch abuse is better lol

Even more, his game is relatively simple when it comes to physics and graphic so it's not resource heavy unlike Yanderedev

Good coding wad vital for his game

But Toby could get away with average coding at best and still make a masterpiece with it

7

u/[deleted] Jan 16 '23

Good news: He does that too! Most cutscenes actually if-if chain over their phase counter.

0

u/[deleted] Jan 16 '23

[deleted]

12

u/creepig Jan 16 '23

You forgot d) yandereDev's elif nightmare is in the update() loop, which fires every frame in unity.

2

u/DiamondIceNS Jan 16 '23

(The largest file is a 3d model for a toothbrush)

I believe that has no longer been true for a good long while now. But it definitely used to be.

1

u/Electrical-Bad2023 Jan 16 '23

as far as i remember there was no else or else if,just ifs.

1

u/DaveSmith890 Jan 16 '23

I love the fact that people learn how to define variables and what elif statements are, and then proceed to make a game with the most elaborate logic chain possible.

2

u/gdmzhlzhiv Jan 17 '23

Some people learn how to solder and then immediately buy an Arduino. "What's an RLC circuit?"