Hacker News new | past | comments | ask | show | jobs | submit login

A good litmus test of an experienced Rails developer is how large their /lib directories are in relation to project sizes.

By 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.

Even 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.

Is a large /lib a sign of experience or inexperience? I try to keep as much as possible out of /lib and moved into gems.

Inexperience. lib/ quickly turns into a dumping ground unless you are careful to keep it clear of business logic.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact