Ruby Conf 2021 Service Objects With Monads and Transactions by Paul Sadauskas
Service Objects With Monads and Transactions by Paul Sadauskas Service objects are an important tool in your toolbox, and Transaction library is one of the most powerful, and one of the most magic. It s a business transaction DSL, and has error handling as a primary concern. We ll start by exploring Monads in Ruby (they re not scary ). Then we ll see how that simple concept unlocks another level of service objects that are far more robust and testable, and how to wire them all together with Dry::Transaction. Finally we ll touch on extending transactions with custom steps, and how to integrate them into an existing application.
|
|