Ruby Science: Dependency Injection, Inlining Classes, and DRY

We just pushed the latest update to Ruby Science, including three new chapters.

New chapters this week discuss:

  • Using dependency injection to make changes easier and keep decisions close to the objects they affect.
  • Inlining classes that no longer pull their own weight to improve readability and simplify dependencies.
  • Our first principle chapter, which discusses DRY, including smells and solutions related to detecting and eliminating duplication.

The book is a work in progress, and currently contains around 158 pages of content. Your purchase gets you access to the current release of the book, all future updates, and the companion example application. In addition, purchasers can send thoughtbot their toughest Ruby, Rails, and refactoring questions.

Get your copy of Ruby Science today.

Pair with one of our expert developers to level up your skills with Coaching by thoughtbot. Save time learning best practices and techniques for reducing technical debt in Ember, Ruby, Haskell, and Go in 1-on-1 sessions tailored to your goals.