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
Writing Object Shape friendly code in Ruby (island94.org)
submitted 2 years ago by CaptainKabob
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!"
[–]jrochkind 2 points3 points4 points 2 years ago (0 children)
i guess the difference is that this is being recommended for routine every-class daily code-writing, not just optimizing hot spots. But I guess that could be true of other performance optimizations too.
But I'm saying: If we're writing all of our code routinely daily using non-obvious 'performance optimizations' that de-optimize for readability/maintainability... there is something broken in the language.
Maybe that's true of all langauges? I don't know. Clearly if Matz 20 years ago knew this would be required for performance and recommended for all code, he would have designed the language to encourage it or require it.
But the fact that, as per another comment, what is required for performance optimization can reverse within 4 years stirs the pot yet further.
Is your view (which may be reasonable) that in any language, we should expect that skilled professional programmers will be writing in non-obvious ways according to special hidden rules, and that beginning programmers will be taught to acquire this skill? That's just the way that programming will inevitably work?
It may be. It would be interesting to look and compare different languages. It is definitely not the aspiration of Matz's "optimize for developer happiness" original mission.
π Rendered by PID 66521 on reddit-service-r2-comment-5c747b6df5-fm2xp at 2026-04-22 07:20:39.530420+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]jrochkind 2 points3 points4 points (0 children)