Method Driven Development

March 23, 2018

I’ve created a screencast to show you a technique I sometimes use. I call this approach “Method Driven Development” (MDD).

(I’m sure many people use this technique, though I don’t know if there’s a name for it.)

Using MDD, I explore the Geocoder gem with the goal of finding the distance between Toronto and Chicago.

After watching this video, you’ll understand the ins and outs of MDD, including how to:

  • investigate the methods that are available on each Ruby object
  • sift through those methods and quickly find the method you want
  • pull up docs on the method without leaving pry
  • use Ruby’s grep method

Plus, you’ll also learn the basics of the geocoder gem: searching, distance between, working with kilometeres and miles.

Ready to give it a try? Install the interesting_methods gem I’ve just released and then code along as you watch this video.


There’s a few thoughtful pry tips on a reddit thread for this screencast: