Tuesday, December 28, 2004

Trying something..

I am giving it a new try. In programming world, we do not try unless we secure ourselves by at least one catch. Catching something out of the "try" is actually not a good thing, because it means the attempt has failed. Sometimes, we try and expect to catch something, so we might have known what might go wrong in advance.

In programming -also, one might find programs that do not try, neighther catch anything. These are called defensive-programs, then the programmers are not courageous enough to try crazy things in their code. I tend to extend the concept, which means that they also might be cowrds in their lives. The funky thing I admit is that I am absolutely greedy in my programs, whilst very hesitant in ordinary life takes.

What I am searching for is a safe mechanism, to be applied in real world. A real-time try-catch model is what I am thinking of. I just do not know how it could be implemented for real. Programming world can be of great help to come to such implementation. There programming try-catch model is based on what is called "structured exception handling" which must have greater support from the underlying OS. These might be explained as something like special signals from OS to programs whenever there is something wong going on. The porgram then must "catch"es the wrong and handles it. Structured is really meaningful here, because an exception passes into different physical layers of OSs/VMs/Programs, until someone who really cares invokes himself.

For real life, I can not get the appropriate layers "structure" that is present in the very low levels of programming world. The only physical Layers I can think of are: me, my environment, my relatives and my friends. It seems that I, like any humble piece of code, have much more dependencies on others, rather than myself. Implementation complete!