Friday, June 16, 2006

Similarity b/w Life & Execution of Software

There are many similarities between software. Sometimes it goes in sequential manner as software, sometime it goes object oriented. Life calls many function like in day to day life.
Execution of life starts from birth. Birth is like a main method of life. It initializes many variables of life like sorrows, happiness, joy, emotion and changing these values throughout life. Life has one very important variable is character of person, which changed according to environment of living. Other variable of life also changing due to conditions (inputs to life).
There are some constants in life also as programs that can’t be change like body shape, color. So we have to give importance on variables, so that we can become a good human being.
Functions of life are day to day works which is done by us through out the life. These functions also change the life’s variables. Sometime friend functions also affect the variables. Sometime other function and malicious function can affect the life’s variables. They can give happiness or sorrows.
In life, there are many times we have conditions like if else statements of program, which are also depends upon inputs and variables of life.
Some times we can find our self in loops. For example, going to school and offices make loop. In childhood from nursery to till our study ends, one times of execution end when we are in new class.
Sometime there are break statements in loop and sometimes there are continue statement. Sometimes we find our self in infinite loop.
Some time we have options like switch statements, among which we have to choose one. Which can depends upon the values of life variables. For example after completing engineering we have many option like admission in M.Tech, MBA, job in reputed company etc. Some time we execute default statements like a normal person.
So in this way we execute our whole life and one day, we end our execution of life, after executing all statements of life, calling all function, going through all if else statements and loops as program ends.

No comments: