Business logic in Rails with operators | Petr Hlavicka
21-Oct-2021 2347
Having a thousand lines long controllers and/or models is not the right way to have sustainable applications or developers’ sanity. Let’s look at my solution for business logic in the Rails app.Spoiler alert: yes, I will use PORO… again.Why?Why should you not have such long controllers/models (or even views)? There are a lot of reasons. From worse sustainability, readability, to worse testability. But mainly, they all affect the developer’s happiness.I can gladly recommend Sustainable Web Development with Ruby on Rails from David Bryant Copeland where he did a great job explaining it all.
Business logic in Rails with operators | Petr Hlavicka #ruby #rubydeveloper #rubyonrails #Business #logic #Rails #operators #Hlavicka https://rubyonrails.ba/link/business-logic-in-rails-with-operators-petr-hlavicka