10/13/2012

India: code review

By Ajay Amrite
Anybody who has done any coding will realize that the problem in India is the exception handling. There is none. Only the happy path is coded. If you follow the happy path your life will be alright. If something goes wrong, accident, health issues, fire, theft etc… (exceptions), you are basically screwed because police is incompetent, it takes forever to get justice in the courts, no health service, no life/health insurance.

Indian @independence

systems/processes are like the first piece of ‘hello world’ code
public void life() throws Exception {
  …
}
// we don’t even know the exceptions may occur
public void main() {
   life();
}

India @65
Sweep the exceptions under the carpet
public void life(){

  …
}
// we know things can go bad and we have robust mechanism for handling the issue
public void main() {
  try{
      life();
  }catch(Exception e) {
      print(“We are sorry for the interruption, You are screwed”);
      exit();
  }
}
Developed country
public void life() {

  do lot of paper work.
  birth
  do somemore paper work
  take loan for education
  do a lot of paperwork
  get job
  do a lot of paperwork and pay a lot of taxes
  marriage()
  do a lot of paperwork for mortgage
  …..
}
// life is filled with exceptions
public void main() {
  try{
     life();
  }catch(Exception e) {
     media cries foul
     politician says people need to grow up
     fill this 100 page form
     help is on the way
     help is here
     do a lot of paperwork
     recieve help
  }
}
I can go on… but I am sure you get the idea.