Since programming language is abstract, the best way to understand it is by using an analogy.
Today, I want to explain the concept of switch-case as an alternative to if-else in a possible plain using, of course, an analogy.
Imagine that you have an electrical circuit with different outputs. Each output is inside its respective
case with a unique connector shape and equipped with an indicator light that will turn on when in use.
Now, whenever you want to operate a certain case, you must pair it with a perfectly similar connector. Should they are matched…
I’m not tempted by notifications.
Even if my Facebook has a hundred notifications, I never checked it out.
My Gmail has 500+ unread messages, and I don’t feel any rush to open it.
Quora notifs? Never feel FOMO.
But game? That’s another story.
Back in 2016, I installed and played a mobile game where I can play over 100 characters from Marvel Universe, including Deadpool.
The graphics were so detailed and accurate that it felt like watching a movie.
The game story is amazing and I can level up my rosters to get to the top of the leaderboard.
We live in a society where we celebrate the winner and punish the loser.
Failed at a game and you’ll be forgotten.
And it applies in every aspect.
In school, you’ll feel bad if not making it to be a highest rank.
In sport competition, the crowd only cheer the champion.
And if we don’t make it, we start to feel bad, we start to doubt ourselves.
Maybe there is something wrong with us.
Maybe we are not good enough, or not smart enough.
Maybe we are not born to win.
And it starts to affect our performance, which leads…