Re:Use Bundler.setup Instead of Bundler.require
by anti-pattern on Wednesday March 13, 2013 @03:43PM
(#5370660)
Yes, but, if you test your classes in isolation, then you'll be forced to manually require each dependency at the top of the file.
[ Parent
| on HN ]
Re:Use Bundler.setup Instead of Bundler.require
by mnarayan01 on Wednesday March 13, 2013 @04:14PM
(#5370840)
Stormbrew said pretty much everything I would (https://news.ycombinator.com/item?id=5370718), but the one thing I would add is that most people are not going to keep their requires up-to-date for all but the most stable projects. Once your requires start to get stale/incomplete, they can easily become more of a liability than a benefit.
Again, I tend to agree with you more than I disagree. I think were I disagree is in making it a recommendation -- if someone is on point enough to effectively use Bundler.setup, I don't know that they need to have it recommended to them; they just need to know the difference between Bundler.setup and Bundler.require. On the other hand, if someone does need a recommendation and not a description, I'm not sure that either is the appropriate response.
I guess at the end of the day, I'm just not looking forward to the change-sets this might generate ;)