O'Reilly logo

Professional Test-Driven Development with C#: Developing Real World Applications with TDD by Jeff McWherter, James Bender

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SHARE YOUR WORK

Several years ago I started playing ice hockey. A big part of hockey (I would say 90%) is the ability to skate. I already knew how to skate a bit, but I hadn't really reached a level where I could be competitive. I started practicing in earnest; I grabbed every bit of available ice time and spent hours practicing. I was getting pretty good, but one thing still bothered me: my turns. A professional hockey player can make tight, fast turns without losing any speed. I wanted to be able to do that, so I spent countless hours practicing. The problem is I never got any better at it. I didn't understand. I thought I was doing exactly what I saw everybody else doing, so why wasn't I improving? It became frustrating.

One day I was at an open practice, and I spoke to a friend who does some coaching. I explained my problem and asked if he could help. He had me skate out and make a few turns. He knew right away what my problem was: My feet were too far apart. I made the prescribed change to my technique, and before long I could make turns the way I wanted. I would never have known that if someone hadn't looked at what I was doing and given me another perspective.

It's the same with software development — specifically, learning a new technique such as TDD. It's important to share your code with others. Other people will see problems that you are blind to. Other people will have a viewpoint you have not considered. Other people will see sloppy technique creeping in where you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required