Smit Shah

God As Exception

I come from a science background.

Every event, every action can be explained by a cause, a reason for it happening.

However, there are times when we can not explain why or how an event occured.

We call them Miracles, Luck etc.

 

Along the same line of thinking, while programming, we try to address all possible scenarios. 

We parse, and process all possible values to avoid unexpected results.

However, even than, we have "unhandled exceptions"

Shouldnt we rather call them "act of god?"

What do you think of the pseudo code below?

 

Try

  Dim Data as String

  Process.Information(Data)

  return "Success"

Catch God as Exception

  return "Act of God"

End Try

 

                                                                                         
This is a personal weblog. The opinions expressed here represent my own and not those of my employer. For accuracy and official reference refer to MSDN/ TechNet/ BOL /Other sites that are authorities in their field. Me or employer do not endorse any tools, applications, books, or concepts mentioned on the site. I have documented my personal experience on this site. The information on this site may not be up to date or accurate at times, if you are not sure or have a question, please contact me to verify information.