Life in If and Else

Written by

in

One peaceful Monday morning, having ravishing food and enjoying a big brand name, I drifted slightly from my sober sight, and tried to explore the real-life meaning of adaptability and acceptability.

And I drooled myself to sleep — only to be woken by office colleagues whispering that some senior was coming near. I woke with such a pace that I could have won a medal for it; I found my keyboard and mouse, and started staring blankly at my screen — at some import statements, instances, static members, and condition statements declared.

If, and else? I was astonished — our life is also like this.

Multiple ifs and elses: we call them planning, or restrictions. Instance variables are your relatives; static members are your family; and import statements are like education, degrees, friends, and so on. So our life is actually the execution of some code — in terms of if and else, deciding what will happen next — and problems arise with multiple executions, if multithreading is supported, and with all the advice, like annotations, directing our path.

Multiple ifs and elses: if money, then switch — buy item one; and if money is greater than some amount, then buy this. If money is… and so the code of life keeps running.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *