Syed Aslam
@syedaslam
Memoizing with ||= in Ruby looks clean and idiomatic, until your domain evolves and "false" becomes a legitimate cached value. Here's why ||= doesn't mean "if unset" (it means "if falsey"), and how that subtle distinction silently kills performance. https://syedaslam.com/posts/when-or-equals-betrays-your-memoization/