DEV Community

B Jacquet
B Jacquet

Posted on

I read 99 Bottles of OOP

99 Bottles of OOP, A Practical Guide to Object-Oriented Design is a book by Sandi Metz, Katrina Owen, and TJ Stankus. I gave a four star review on Goodreads meaning that I really liked it!


This is a book about Object-Oriented concepts, or should I say processes? It presents the reader a series of doctrines to follow which will improve the quality of the code.

The book begins by requesting the reader to write code which prints out the lyrics to the 99 Bottles of Beer song. How often do we get this? It then guides the reader on evaluating its own code. The book also presents four different solutions to its own challenge and uses them, by a series of refactoring, to present the topics of the book.
The book can be as practical as the reader wants it to be; either by passively reading the authors' approach to solve this problem, or; following along the book and apply those changes to the code directly.

I think this extract from the book makes a good tl;dr summary: "Strive for simplicity. Don't abstract too soon. Focus on smells. Concentrate on difference. Take small steps. Follow the Flocking Rules. Refactor under green. Fix the easy problems first. Work horizontally. Seek stable leading points. Be disciplined. Don't chase the shiny thing."

I read the Ruby version of the book and I think it's worth re-reading it in the Javascript version. Mostly because I use both languages. The concepts in this book are language agnostic and can be used on any object oriented programming language. One can take the exercise a little bit further and use it with some other OO language.


99 Bottles of OOP website.
99 Bottles of OOP on Goodreads.

Top comments (0)