I've assumed the opinion that nowadays, we prefer to keep both the model and controller skinny, because heavy business/domain logic can often be extracted out into service/query/form objects. Making those pieces of functionality more reusable
What is your reasoning to only keeping one of the two skinny?
Haha, my post is more for the sake of the joke then real complain.
I do agree, it's totally possible to have those classes skinny as have the logic in PORO.
Still I can imagine for most more or less big projects models are inevitably going to get fatter just because how many responsibilities has Active Record class.
Yup this does eventually happen in big projects. I've found that having some kind of maintainable conventions help most with keeping new projects easy to work on; and when trying to create some kind of consistency in refactoring the legacy/bigger projects; or building new features.
Keeping them skinny in the long term definitely can be tough.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've assumed the opinion that nowadays, we prefer to keep both the model and controller skinny, because heavy business/domain logic can often be extracted out into service/query/form objects. Making those pieces of functionality more reusable
What is your reasoning to only keeping one of the two skinny?
Haha, my post is more for the sake of the joke then real complain.
I do agree, it's totally possible to have those classes skinny as have the logic in PORO.
Still I can imagine for most more or less big projects models are inevitably going to get fatter just because how many responsibilities has Active Record class.
😂
Yup this does eventually happen in big projects. I've found that having some kind of maintainable conventions help most with keeping new projects easy to work on; and when trying to create some kind of consistency in refactoring the legacy/bigger projects; or building new features.
Keeping them skinny in the long term definitely can be tough.