Many new developers (and old developers) feel that reading other people's code is boring if not torture.  I suggest that you look at this necessary evil as opportunities to discover treasures.  You can learn new techniques by reviewing other's work.  You can also learn things that you shouldn't do or remind yourself why you don't code a certain way.  Either way you will most likely see code implemented in ways that you wouldn't normally do yourself.

So lets take this discussion beyond just reading the code by eye.  Stepping through the code will help you to learn even more.  You will see things that you didn't notice by just reading.  This is mostly because there are only so many variations that most people (at least normal people) can mentally exercise.

If you want to work on this technique for improving your skill try checking out Scott Hanselman's blog where he posts Weekly Source Code.  There are also a couple of people who post in their blogs challenging readers to figure out what is wrong with their code.  Give it a try.

Technorati Tags: ,