Episode #048: Memoize

Meta-programming is the art of writing code that writes code. Easy meta-programming is one of Ruby's great strengths, but getting started at it can seem a little daunting. In this episode, you'll get your feet wet with meta-programming by tackling a classic problem: optimizing a method so that it reuses previously calculated results.

This page is just for members. Sign in or subscribe to gain access!