Books that I've been reading and what I think about them

Practical Object-Oriented Design in Ruby

Written by: Sandi Metz
Last Updated: Oct. 03, 2012

I started reading this book after hearing Sandi Metz give a talk on making messes (and then sweeping them into a maintainable class or method) at Rocky Mountain Ruby, 2012.

When I finish the book I'll give it a full overview. For now, here's my impressions and the big points that I'm seeing:

  • Not an immediate feedback book. Sandi will mention a programming problem and discuss the pros and cons of tacking it in several different ways. Sometimes, she'll also point out that another part of the book has a better description. I guess I'll have to keep reading.
  • For classes/methods or any definable block of code: Give it a single purpose. To verify that it only has one purpose, ask it and see if the answer it says back to you is simple or if it has 'and' or 'or' in it. If the answer isn't simple, it probably doesn't have a single purpose.

comments powered by Disqus