top | item 16002756

(no title)

turboladen | 8 years ago

That seems a bit shallow. I’ve been Rubying for 10 years and have always preferred find_all over select. select turns up in other APIs having different meanings (thinking of IO specifically); find_all tells you exactly what it’s going to do. Just my opinion, of course.

discuss

order

dkubb|8 years ago

For me, it's always been select/reject/detect. Even though I know about find_all, it always seemed like the odd one out.

odammit|8 years ago

Unrelated!

I haven’t talked to you in years. I wrote some DM plugins back in the day.

Hope you’re doing well!

Are you working on any interesting open source projects?

fny|8 years ago

You're forgetting the existence of `find` which easily justifies `find_all`

pmontra|8 years ago

I always use select and I've been writing Ruby since 2006. I didn't even remember find_all exists. As a name select reflects what I want it to do, find_all much less (this is very subjective). Furthermore it's easier to type. Luckily we have both and everyone is happy.