The 10-minute Rails Pub/Sub

20-Feb-2019 1884
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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle