No less than 15 Ruby stdlib classes use protected methods. I don't buy all the protected hate. It's extremely (but rarely) useful.
-
-
Replying to @amcaplan
it's critical for methods that deal with other instances of the same class in ruby, which happens for obvious reasons.
2 replies 0 retweets 1 like -
people hate protected for the same reason they like microlibraries. It "seems unnecessary"
1 reply 1 retweet 0 likes -
but people underestimate the value of small amounts of enforced coordination.
2 replies 0 retweets 1 like
arity checking in ruby is a huge improvement over JS. Private instance variables a huge improvement over JS/Python.
12:11 PM - 20 Nov 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.