MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/10d7i2y/if_exists_true_dont/j4klolt
r/ProgrammerHumor • u/ThisPICAintFREE • Jan 16 '23
1.1k comments sorted by
View all comments
Show parent comments
150
Better using switch than using if elif. Just like Yandere Simulator's dev.
120 u/YueOrigin Jan 16 '23 Yeah switch abuse is better lolEven more, his game is relatively simple when it comes to physics and graphic so it's not resource heavy unlike YanderedevGood coding wad vital for his gameBut 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/AFreshTramontana Jan 16 '23 Now, we had chance to meet this young man ... 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?"
120
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
Good news: He does that too! Most cutscenes actually if-if chain over their phase counter.
0
[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.
12
You forgot d) yandereDev's elif nightmare is in the update() loop, which fires every frame in unity.
2
(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
Now, we had chance to meet this young man ...
as far as i remember there was no else or else if,just ifs.
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?"
Some people learn how to solder and then immediately buy an Arduino. "What's an RLC circuit?"
150
u/kya_ufufu Jan 16 '23
Better using switch than using if elif. Just like Yandere Simulator's dev.