this post was submitted on 07 Dec 2024
229 points (96.7% liked)

memes

10668 readers
2706 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 !politicalmemes@lemmy.world

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
[–] JusticeForPorygon@lemmy.world 4 points 2 weeks ago (2 children)

Me who still doesn't understand switch

[–] InFerNo@lemmy.ml 6 points 2 weeks 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.

[–] Deepus@lemm.ee 2 points 2 weeks ago (1 children)

Turns on and off?

  • non programmer
[–] wedeworps@sh.itjust.works 1 points 1 week ago

I think they meant the Nintendo console