5:59 Play Subscribe with or Intro song by Falseta

Episode #396 - August 20th, 2013

Eef7e6b6c1281a746a6a7b3db171cd0c.jpg?s=18&r=pg&d=http%3a%2f%2fwww.gravatar.com%2favatar%2f8ebf4339f7c8cd73b53d1d1d3eba7c35 Tony Winn 9c5541e591a62dd93a2fd2d45b5732dd.jpg?s=18&r=pg&d=http%3a%2f%2fwww.gravatar.com%2favatar%2f8ebf4339f7c8cd73b53d1d1d3eba7c35 Olivier Lacan

Rails 4.1 feature call, Bundler local paths, multi-table full text search in Postgres, handy predicates, strong parameters by example, merged docs for Ruby 2.0 & Rails 4.0 and Rails API testing best practices.

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).

  • TopRubyJobs
  • Rails 4.1
  • Bundler Local Paths
  • Multi-Table Full Text Search
  • Know Thy Predicates
  • Strong Params by Example
  • Ruby 2.0 & Rails 4.0 Docs
  • Rails API Testing Best Practices
  • Ruby5

Know Thy Predicates Jump to Story

Ruby, like most programming language allows people to write conditionals to determine whether: an integer is odd or even, greater than another, or between two integers. Except in many cases there are better ways to do this in a more object-oriented way using the predicate methods defined on core ruby classes like Fixnum. And that’s exactly what Bozhidar Ivanov Batsov demonstrates a neat blog post called Know Thy Predicates. Many of these predicates tend to make your code more expressive. Although as Bozhidar mentions in the post, they require you to be careful about the risk of calling these methods on nil since your conditional will explode with a NoMethodError instead of false.

December 19, 2014

Eastward Ho, Git ours/theirs and where does your code go?

December 16, 2014

This week we have Streem, Rails 4.2.rc3, Papercrop, and RubyMotion 3.0.

December 9, 2014

This week we have a jRuby security release, a new Command API for ROM, Traveling Ruby, early validations, easy rewrites with Ruby and Science!, and a Rails Camp not too far from Hobbiton.

December 5th, 2014

RubyConf 2014 on Confreaks, browser geolocation with Spyme, referential integrity with foreign keys, forwarding messages with tell, and free SecCasts all in this episode of the Ruby5.