Using Service Objects to extract business logic.
The Rails defaults work really well. You start with really nice, clean models and controllers. You can view them all as one page of code and hold an idea of what they do in your head. Problem is that they keep getting bigger as you add features and eventually they balloon out of control. Giant files that are hard to understand suck.
So refactor them into…
Keep reading with a 7-day free trial
Subscribe to Dragon Astronauts’ Blog to keep reading this post and get 7 days of free access to the full post archives.