The 10-minute Rails Pub/Sub
20-Feb-2019 1938
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 #10-minute #Rails #Pub/Sub https://rubyonrails.ba/link/the-10-minute-rails-pub-sub