Posted about 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?

Owner of this card:

Avatar
Henning Koch
Last edit:
almost 3 years ago
by Henning Koch
Posted by Henning Koch to makandra Curriculum
This website uses cookies to improve usability and analyze traffic.
Accept or learn more