4 ms·
It's fairly rare, honestly. You see it occasionally, but it's often a pain when you do. Interestingly, Facets (a non-Rails support library similar in scope to
by angelbob 16y ago
It's fairly rare, honestly. You see it occasionally, but it's often a pain when you do.
Interestingly, Facets (a non-Rails support library similar in scope to AR) has exactly the same problem. So mostly this is an argument against similar broad support libraries outside any specific scope.
That is, Facets would be pointless by this argument because it has no Rails-like environment to live in.
- hayesdavis 16y agoI agree that it's reasonably rare (though anecdotally I do feel like I'm running into it more often). It's correct that I'm essentially arguing against requiring "invasive" support libraries that change the nature of ruby (admittedly, that's subjective) in gems. Gem authors should consider their dependencies on the basis of necessity, not convenience. Keep the scope low and compatibility high.
- jamesbritt 16y agoThe nice thing about facets is that you can include just the items you're interested in. You don't need to pull in every method defined in the library.
- dhh 16y agoActive Support 3 offers piece meal inclusion. You can grab it all at once or bit by bit as you please.