Posted almost 3 years ago. Visible to the public.

Memoization

Goals

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

Excercises

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

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

Author of this card:

Avatar
Henning Koch
Last edit:
over 2 years ago
by Henning Koch
Posted by Henning Koch to makandra Curriculum