Test Driven Development and Teenage Sex 9

Posted by Bob Silva Thu, 07 Sep 2006 03:21:00 GMT

Twenty years ago, I learned about sex for the first time. All my friends said they were doing it, although I think most of them were full of it and just wanted to look cool. I didn't know much about sex back then but I'd read about it in The Joy of Sex and watched it on TV. There's something about actually doing it that you don't understand through those other mediums.


Learning about testing has been a very similar experience for me. I've known about it for awhile, all my programmer friends say they're doing it, and I've even read Test Driven Development By Example by Kent Beck. But doing it for the first time is a completely different experience. At first, I didn't know exactly what I was doing, I was aimlessly exploring the inputs and outputs, and before I knew it, I'd had my first testing orgasm. The tests I was writing discovered a serious bug in my code. That's when it clicked for me, really understanding what test driven development is about. If I had written the tests first, the specific bug they revealed wouldn't have existed in the first place.


Now that I've popped my testing cherry, I want to keep doing it, and much like my first sexual partner, Rails makes it easy. And when you get comfortable with your new partner, you can introduce great toys like ZenTest that will improve your experience.



Comments

Leave a response

  1. Pat about 4 hours later:
    Is it okay that I'm all hot and bothered now?
  2. Joe Ruby about 4 hours later:
    So, are test harnesses anything like sex harnesses?
  3. Bob Aman about 10 hours later:
    I'd really like to recommend playing around with RSpec at this juncture, but I'm not sure how to work in a sexual metaphor.
  4. Bob Silva about 11 hours later:
    I'd imagine RSpec would be the equivalent of a Dominatrix.
  5. atmos about 13 hours later:
    Holy shit, nice one!
  6. Ellis about 13 hours later:
    Well, you win the prize for most disturbing Rails metaphor ever.
  7. Josh 11 days later:
    What about protection? :)
  8. Bob Silva 11 days later:
    Rcov of course!
  9. Dave Astels about 1 month later:
    Nice.... Does this make me a pimp?
Comments