2 ms·
Why does one conversion method have the “to” prefix and the other doesn’t? I guess because the inconsistency looks somehow prettier. But this is what drives me
by pavlov 9y ago
Why does one conversion method have the “to” prefix and the other doesn’t? I guess because the inconsistency looks somehow prettier.
But this is what drives me up the wall with the Ruby ecosystem: seems that whenever API designers had the choice between consistency and fun gimmick, they chose the latter. It makes some people feel happy, but often makes the next person who has to read and maintain the code miserable.
- jashmatthews 9y ago10.seconds is not part of the Ruby stdlib. It's Rails ActiveSupport. That's why it's different.