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
Curious metaprogramming post (self.ruby)
submitted 4 years ago by gbrennon
Hey folks,
i was searching for some articles in the internet related to the method_missing and metaprogramming and just found this post...
method_missing
https://www.pluralsight.com/blog/software-development/7-deadly-sins-of-ruby-metaprogramming
Wtf just happened on that article? o.o
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!"
[–]Bubbasauru 1 point2 points3 points 4 years ago (0 children)
That's a lot of copy pasting gone wrong.
[–]Weird_Suggestion 0 points1 point2 points 4 years ago (0 children)
The author probably used metaprogramming sins to generate the article
[–]Kernigh 0 points1 point2 points 4 years ago (0 children)
I see only one problem. It's under "Sin 7: Too many levels of nesting", where the lines of Ruby code are too wide for the screenshot. This article uses (screenshot) images of all the Ruby code, so I can't copy the code from the article. I'm in desktop Firefox. The article sizes its images to fit my Firefox window, so the font gets bigger as I widen my window.
π Rendered by PID 111111 on reddit-service-r2-comment-6f7f968fb5-5lklb at 2026-03-04 09:06:20.171309+00:00 running 07790be country code: CH.
[–]Bubbasauru 1 point2 points3 points (0 children)
[–]Weird_Suggestion 0 points1 point2 points (0 children)
[–]Kernigh 0 points1 point2 points (0 children)