The 10-minute Rails Pub/Sub

Rails active record models easily become bloated, that’s where most of the business logic tends to live after all. One of the most common sources of technical debt in Rails apps is callbacks. Models become god-objects with dependencies to other models, mailers and even 3rd party services.When it comes to refactoring this coupling, I usually recommend extracting all callbacks to stateless functions which can be composed to form pipelines. One can use dry-transaction for that. My love for such composable architectures led me to create Opus for Elixir.
The 10-minute Rails Pub/Sub #ruby #rubydeveloper #rubyonrails https://www.rubyonrails.ba/single/the-10-minute-rails-pub-sub

Nezir Zahirovic

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

related articles