Luismi Cavallé

Luismi Cavallé

Luismi works at BeBanjo. He's been putting together lines of Ruby code for fun and profit since 2006. He's an active open-source contributor and got his 15 minutes of fame a couple of years back as the author of Steak (later revealed as a scam). He's been involved with the Ruby community in Spain organising and speaking at local conferences and leading the Madrid Ruby users group. He lives now in London.

Patterns to deal with big ActiveRecord models

Watch the video

“Skinny controllers, fat models” is a well-known practice in the Rails community that everyone seems to follow. However, as your application evolves and your models grow, maintaining them can become less enjoyable than it used to be.

In the last few years, the community has been proposing patterns and techniques to deal with big AR models. Presenters, Service objects, Concerns or DCI are only a few examples of solutions suggested to alleviate the pain caused by gigantic models.

In this talk, we will critically explore these patterns in their different flavours. We'll compare them in order to expose their strengths and weaknesses and you'll learn when and how to use them to keep your Rails models as pleasurable to deal with as the first day.