Posted about 6 years ago. Visible to the public.

Memoization [0.5d]


  • Understand what Memoization is and why it is necessary
  • Understand the @variable ||= computation pattern
  • Learn how to use the memoized gem


  • Use the @variable ||= pattern.
  • Use the memoized gem.

What are the advantages of the memoized gem over the @variable ||= syntax?

Owner of this card:

Henning Koch
Last edit:
about 2 years ago
by Hannes Randow
Posted by Henning Koch to makandra Curriculum
This website uses short-lived cookies to improve usability.
Accept or learn more