Tuesday, July 15, 2008

Programming visualization exercise

Imagine that you could walk inside the code as if it was a city street...

The "if()" statements would be the corners where you make decisions where to turn.

The classes would be the buildings and the method interfaces the doors you would enter.

The bags you carry into these doors would contain the objects you need.

Oh, and the "Windows" would be the "exceptions" you would use to jump out off when everything goes bad.

Sorry, I had to put it in, I am a Mac guy.