Posted about 4 years ago. Visible to the public.

Memoization [0.5d]

Goals

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

Exercises

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

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

Owner of this card:

Avatar
Henning Koch
Last edit:
19 days ago
by Hannes Randow
Posted by Henning Koch to makandra Curriculum
This website uses cookies to improve usability and analyze traffic.
Accept or learn more