We have decided to post all the day-to-day happenings of tech-Aakriti on the AIT Hackers Association Blog and keep this blog purely for event related information. So check out the
tech-Aakriti TRACKER at


Showing posts with label Exception Handling. Show all posts
Showing posts with label Exception Handling. Show all posts

Saturday, October 16, 2010

Lets make an Exception

 Just out of college, a computer engineer, a thinker. Wanted to write some real code. Did write it. Took my 1st snippet of code on to a live production environment. It ran well. Phew!!! No issues there. And then i got my first ever app to write. You know, the one with the user interface. That is when i had my tryst with the end user, the customer, the purpose and the fool.

Its was running smoothly! Flawless was the word. Then all the weird cases start to crop up. Things you would have never imagined, would stare you in the eye and say, "I dare you to get past me." That is when you realize that the 1st step to writing good production code is being exceptionally good at Exceptional Handling. There is no point in calling yourself a good coder if you can not even think of the assumptions and errors the end user will make while running your application all by himself and then blame it all on you for not handling things so very trivial. I would like to trade places with him and then watch the fun. But, the customer is always right, primarily because he is paying me good money to write the code. So, i might as well take the blame, or not, by writing good code.

So here are a few pointers i got over this last one week's experience at work on exceptions and their handling: