Sometimes we need to memoize/cache expensive operations. A typical case is to avoid multiple database calls. A common Ruby technique is to use the laz…
You are happily working on a feature. You add a bunch of new code so that it works according to the acceptance criteria. At some point, you decide to …
TL;DR: Don't mix booleans with non-booleans.
Not Declarative Code
Hard to debug
The code works, however there is a more efficient solution. Here is the original:
Remove Middle man.