RubyConf 2015 - Extremely Defensive Coding by Sam Phippen

1,585 views · Published 23 November 2015 · 34:56 · Indexed 27 October 2026

Channel: Confreaks · 2015 · Science & Technology

Watch on YouTube

Extremely Defensive Coding by Sam Phippen

Defensive programming is one of those abstract ideas that seems great but is often unclear in practice.

In this talk we'll look at some of the extremely defensive patterns that have been driven out in RSpec through the years. We'll look at building Ruby that works across a range of interpreters (including 1.8.7!). We'll investigate how you can write code that defends against objects that redefine methods like send, method and is_a?.

You should come to this talk if you want to learn about method resolution in Ruby, and cross interpreter design patterns.

Help us caption & translate this video!

http://amara.org/v/H1T7/

More from this channel