Hope for the Best! and Prepare for the Worst!

Hi Folks,

In this post I'll be keeping it short and simple; title says it all.
Not only for major decisions in life, if you make it a habit of hoping for the best and preparing for the worst; believe me when i say this

There is no force in the world that can disrupt your inner peace
Technically speaking, when we write server-side code; before getting into what is to be done we do what unexpected can come! For example; if I have to create an API which calculates factorial (yeah! I get it why would you create an API to calculate a factorial; just keep your noisy brain stick to this concept, factorial is just an example :P ), before I write calculation logic for factorial I'll think of these scenarios!

1. What if null or empty data is passed!!

2. What if instead of number someone passes aplhanumeric data!!

So you see; it may seem like nothing and probably overboard initially but like in software designing, the amount of time you spend in development is barely 10% of software life-cycle; 90% of the time is spent on amending changes, maintaining software, bug-fixes etc.

So when we pay this much attention to a software which has to run on a machine; why not be careful with your life after-all it is far more precious than your friendly pocket software!
Do you ever wonder why we have drills in institutions??
Mock-Drills are conducted so that when in case of emergency; when your mind is in panic and shock (unless you are professionally trained as an armed forces officer :P ), you still should be able to survive because you have rehearsed through a simulation. Same goes with everything around us.

Also, when you've already anticipated decent number of outcomes that may arise from your action; you do not get surprises/shocks instead you stay cool and deal with it better or worse.

Also, it gives you a fight-back attitude. Most of us are used to get going smoothly and that is because most of the time things are nice and easy; actual test of valor comes when things suddenly go sour and you are challenged mentally, physically & emotionally.

Give it a thought!
Shouldn't be so hard; you'll see the relevance when you give it a thought.

Ciao,

Comments

Popular posts from this blog

Single & Virgin in 20s ?

Is PPF Too Good To Be True ?

Key to Successful Professional Life