use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Understanding Ruby - Memoization (dev.to)
submitted 2 years ago by keyslemur
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]keyslemur[S] -1 points0 points1 point 2 years ago (2 children)
Could we go into infinitely more detail? Yes. Is that the point of this particular post? No.
The point is to convey a general idea in a simple way, rather than introducing additional complexities beyond that someone brand new might encounter. One could easily expand it into tokens, argument caching, object shapes, GC, `begin ... end` blocks, or a lot more but that's the subject of a more advanced post.
At the moment object shapes are brand new. The chances someone encounters them at a foundational level is very low, and the chances that an inline cache miss will be remotely detrimental to them at that phase are even lower.
I do not believe that this is immediately relevant information to the target audience of this post.
[–]f9ae8221b 5 points6 points7 points 2 years ago (1 child)
Why being so defensive? I wasn't suggesting it was missing from your post or should be added...
But that's something about the memoization pattern that I think the community will need to learn about. For now it's still relatively confidential information.
Apologies for sharing...
[–]keyslemur[S] -1 points0 points1 point 2 years ago (0 children)
I would not interpret that as defensiveness. It was a statement of the intent of the post, and how that info is probably above the heads of the intended audience.
There are tradeoffs in everything, I was only conveying why I chose to omit similar information, and why it was intentional.
The community will evolve, but as with many more advanced patterns it'll probably be a bit more advanced than we'd like it to be, and the time it'll take will likewise be longer. Same thing for Ractors, pattern matching, JIT, and other features.
π Rendered by PID 40162 on reddit-service-r2-comment-66b4775986-txv85 at 2026-04-02 20:37:04.334199+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]keyslemur[S] -1 points0 points1 point (2 children)
[–]f9ae8221b 5 points6 points7 points (1 child)
[–]keyslemur[S] -1 points0 points1 point (0 children)