top | item 5370660

(no title)

anti-pattern | 13 years ago

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.

discuss

order

mnarayan01|13 years ago

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 ;)