Skip to content

Comment on On logic in a Rails app, revisited 6 years later

Comments

I've been using Rails since version 0.8.6 and have apps as old as 8 years I'm still maintaining. I've had teams as large as 20 on a single rails codebase.

You do not need anything other than the MVC pattern.

I would love to see the claimants of these needed abstractions post their code so I could refactor and show you how you're wrong.

If you make good use of your base controllers you can reduce controller code to next to nothing.

If you avoid Rails abstractions such as scopes use callbacks sparingly and focus on writing raw SQL instead of using Arel's query builder your models are easy to manage.

20 is not a big team. I work as part of a 100+ org on a rails codebase, and I know that isn't especially large.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.