Saturday, February 27, 2010

a discourse on a function called life ....

int life(int *min_age, int max_age); // function that executes life from "min_age" till "max_age" and returns status "1" for bad life and status "0" for a wonderful life

int desperate_call_to_life(int *age)
{
*age=5;

status = life(age, (*age+18));
return status;
}

int main()
{
int *age;

while (1){
if(*age ==23 && !strcmp(occupation, "corporate")){

status = desperate_call_to_life(age);

if (status == 0 )
{
break;
}
}
*age++;
}

return 0; // main should never return unless we had a wonderful life
}


I happened to write this function on facebook reading one of my friends comments. I wish life was such simple as a C program that executes as said. Instead life is so complicated that the thread stack would not be suffice to store all the parameters of life.

life (int parameter_a, int parameter_b, ....)


Think of a mathematical polynomial function LIFE = L(f) = f(x,y,z, .........) with infinite and dynamic variables (a dynamic variable is a variable which gets introduced into our lives without a hint or rather premonition) Sometimes it is a blessing to have such a dynamic variable bring happiness in our life. Sometimes such a variable can defer the happiness and sometimes it can bring bigger problems with it.

The curve of this exceptional function cannot be drawn immaculately on a piece of paper, the function needs to be lived. Some parameters are involuntarily introduced into our function while some we can control. Think about it and decide which controlled parameters we can throw out. (for eg : laziness, smugness, smoking, drinking, etc ....)

Afterall some visionaries could discern their own curve and inject some better parameters of hard work and sacrifices into their own function to live their vision.


No comments: