6:55 Play Subscribe with or Intro song by Falseta

Episode #445 – March 4th, 2014

9c5541e591a62dd93a2fd2d45b5732dd.jpg?s=18&r=pg&d=http%3a%2f%2fwww.gravatar.com%2favatar%2f8ebf4339f7c8cd73b53d1d1d3eba7c35 Olivier Lacan 0d2bf6fbf141a1995560fa9273992ff0.jpg?s=18&r=pg&d=http%3a%2f%2fwww.gravatar.com%2favatar%2f8ebf4339f7c8cd73b53d1d1d3eba7c35 Nathaniel Bibler

It's pattern-mania this week with: interactors, adapters and components-based architectures. Omniref allows us to take a step back to look at dependencies between popular Ruby libraries and we learn about RubyMotion gotchas for Rails developers.

Subscribe to our mailing list!

This episode is sponsored by Top Ruby Jobs. Everyone deserves to love their job (and it's probably in Ruby).

  • Top Ruby Jobs
  • Interactors
  • Component-based Architecture
  • RubyMotion Experiences
  • The Adapter Pattern
  • Ruby Universe
  • Ruby5

Reading Rails: The Adapter Pattern Jump to Story

Last week Adam Sanderson wrote up a blog post about how adapters are used for the MultiJSON gem, ActiveRecord and even the DateTime and Time classes. Quite a few people will find inspiration looking at ActiveRecord’s AbstractAdapter. It contains the basic database functionality while the MysqlAdapter for instance inherits from it and includes more stuff specific to MySQL databases, and the chain goes on all the way down to PostgreSQL. These patterns are very handy when building an adapter for external APIs for instance. Not to mention give you the ability to make a testing adapter that makes no network calls. Sounds like a fun read. The last example in the post is the way Rails (through ActiveSupport) basically patches DateTime to play nice with the Time class by adding a consistent #to_i method to it. As with any foray into Rails source code, you’re likely to pick up some nifty trick or discover some impressive hacks along the way.

November 21st, 2014

RubyConf 2014 wrap-up, accelerating your Rails app, RubyGems.org gets redesigned, Heroku wants you to try HTTP Git, and new versions of Rails were released

November 18th, 2014

This episode covers Ruby 2.1.5, the templating libraries Scribble and Curly, a statically-typed Ruby called Rubysierung and Minitest-Reporters.

November 14th, 2014

Tail call optimizations, keeping migrations healthy, how raptor is so much faster, the psychology of SAAS products, and Ru for your CLI all in this episode of the Ruby5!

November 11, 2014

Command line utilities, autoload paths, a handful of Ruby and Rails releases, security analysis tools, and more on this episode of Ruby5.