Extracting a tidy PORO from a messy Active Record model

In 2006 Jamis Buck wrote a famous post called Skinny Controller, Fat Model. In it Jamis observed that Rails developers often put too much logic in controllers, making the code harder to understand and to test than it needs to be.“Skinny controllers, fat models” became a piece of accepted wisdom in the Rails community. It was a step forward in the overall state of affairs, but a problem remained: moving code out of controllers and into models often resulted in fat models.
Extracting a tidy PORO from a messy Active Record model #ruby #rubydeveloper #rubyonrails #active #record https://rubyonrails.ba/single/extracting-a-tidy-poro-from-a-messy-active-record-model

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles