this post was submitted on 07 Dec 2024
231 points (96.8% liked)

memes

10637 readers
2323 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 week ago (2 children)

Me who still doesn't understand switch

[–] [email protected] 6 points 1 week ago

It's a shorter way to write if else if else if else if else, which keeps indenting and harder to read if there are lots of cases, also because each if statement checks the same variable for different values.

[–] [email protected] 2 points 1 week ago (1 children)

Turns on and off?

  • non programmer
[–] wedeworps 1 points 1 week ago

I think they meant the Nintendo console