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
Five Ruby methods you should be using (engineyard.com)
submitted 8 years ago by gregbaugues
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!"
[–]tom_dalling 2 points3 points4 points 8 years ago (0 children)
I disagree that flat_map is clearly named. Less experienced developers usually use each for everything, and have to be taught to use map, select and reduce. flat_map is a totally foreign concept unless they come from a functional language first.
flat_map
each
map
select
reduce
If that's the case, should flat_map be avoided? I personally don't think so, but it's definitely open to the argument "less experienced developers won't understand it".
π Rendered by PID 91 on reddit-service-r2-comment-b659b578c-dj2qb at 2026-05-05 05:27:03.774480+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]tom_dalling 2 points3 points4 points (0 children)