RubyConf 2014 - 2 + Cats = 4 * Cute: How Math Works in Ruby by Chris Hoffman

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=_GIPsLpYmGE



Duration: 21:31
594 views
6


Do you know how addition works in Ruby? It's simple right? You just add 2 and 2 and out pops 4. But what if you add 2 to cats? That makes no sense, but how does Ruby know it makes no sense? And what if you had a Really Good Business Reason for adding 2 and cats. To achieve the needed degree of cuteness, you're going to need to be positively cat-like yourself. In this talk you'll learn about the magic of the coerce method, and that can't be coerced into Fixnum isn't a warning, but a dare, and what you can do to make your coworkers, collaborators and future self regret it.

Help us caption & translate this video!

http://amara.org/v/Fova/




Other Videos By Confreaks


2014-12-18RubyConf 2014 - Building Your API for Longevity by Mike Stowe
2014-12-18RubyConf 2014 - Rapidly Mapping JSON/XML API Schemas in Ruby by Adam Cuppy
2014-12-18RubyConf 2014 - Going Evergreen by Kane Baccigalupi
2014-12-18RubyConf 2014 - Affordances in Programming Languages by Randy Coulman
2014-12-18RubyConf 2014 - On The Outside Looking In by Cindy Backman
2014-12-17PNWS 2014 - Rapture: The Art of the One-Liner
2014-12-16RubyConf 2014 - 'Good Luck With That' : Tag Teaming Civic Data by Liz Rush & Hsing-Hui Hsu
2014-12-16RubyConf 2014 - Polishing Ruby by Olivier Lacan
2014-12-16RubyConf 2014 - Programming, Education, and the American Dream by Liz Abinante
2014-12-16RubyConf 2014 - Ruby After Rails by Ernie Miller
2014-12-16RubyConf 2014 - 2 + Cats = 4 * Cute: How Math Works in Ruby by Chris Hoffman
2014-12-15PNWS 2014 - What every (Scala) programmer should know about category theory
2014-12-15PNWS 2014 - Towards a Safer Scala
2014-12-15PNWS 2014 - Composing Project Archetypes with SBT AutoPlugins
2014-12-15PNWS 2014 - Building a Better Future: Advanced Error Handling for Concurrent Programming with Scalaz
2014-12-15PNWS 2014 - Unruly Creatures: Strategies for dealing with Real Numbers
2014-12-15PNWS 2014 - Hands-on Scala.js
2014-12-15PNWS 2014 - One Year of Akka
2014-12-15PNWS 2014 - What's new since Programming in Scala
2014-12-15PNWS 2014 - Adding Tree and Tree: Distributed Decision Tree Learning
2014-12-15PNWS 2014 - The First Hit is Always Free: A Skeptic's Look at scalaz' Gateway Drugs