16 Matching Annotations
  1. Sep 2024
    1. Looks really nice. May switch to this from Memoist. This alt is much more configurable.

    2. memoize :call, condition: -> { environment == 'production' }
    3. Such gems like Memoist override methods. So, if you want to memoize a method in a child class with the same named memoized method in a parent class — you have to use something like awkward identifier: argument. This gem allows you to just memoize methods when you want to.
    4. It's a fork of Memery gem. Original Memery uses prepend Module.new with memoized methods, not touching original ones. This approach has advantages, but also has problems, see discussion here: tycooon#1
  2. Dec 2020
  3. Nov 2020
  4. Sep 2020
    1. By default, in order to allow inline fat-arrow validation functions, the field will not rerender if you change your validation function to an alternate function that has a different behavior. If you need your field to rerender with a new validation function, you will need to update another prop on the Field, such as key
  5. Jul 2020
    1. Even if for some reason MyParent component re-renders, handleClick stays the same and doesn’t break the memoization of MyBigList.
  6. Jan 2020
  7. Oct 2019
  8. Sep 2019
  9. Mar 2017
    1. In this solution, we used memoization to recursively calculate the solutions for subproblems which we then used to calculate the solutions to larger problems. Alternatively, tabulation could have been used to build up solutions from the bottom up.

      So, from the whole thing I take it that the problem has actually two parts: i.) a pre-processing part in which all paths have been explored (via memoization), and, ii). discover the optimal path to take, given the memoization table.