4 ms·
A good litmus test of an experienced Rails developer is how large their /lib directories are in relation to project sizes.
by seancoleman 13y ago
A good litmus test of an experienced Rails developer is how large their /lib directories are in relation to project sizes.
- nimblegorilla 13y agoIs a large /lib a sign of experience or inexperience? I try to keep as much as possible out of /lib and moved into gems.
- awj 13y agoInexperience. lib/ quickly turns into a dumping ground unless you are careful to keep it clear of business logic.
- dhh 13y agoBy this I hope you mean that the smaller it is, the better. /lib is intended for non-app specific code. The halfway house before code is extracted into either a Rails PR or a separate gem.
- ryanbrunner 13y agoEven better is realizing that you can put whatever you want into /app, and having /app/presenters, /app/decorators, and /app/services directories in your application.