Transactions blocks with endless methods
21-Jun-2024 341
You can use the endless method to name a transaction block in Rails.This is a technique Kasper Timm Hansenshared in a reply to my previous post. I will try to refactor some examples from two open-source Rails repositories just to explore how the code looks.This open-ended exercise is a playground for experimenting with the code shape and seeing if it offers any advantages. Your feedback is not only welcome but anticipated. I invite you to play with it, too, and try to assess from various perspectives how it affects your ability to read and understand the code.
Transactions blocks with endless methods #ruby #rubydeveloper #rubyonrails #Transactions #blocks #endless #methods https://rubyonrails.ba/link/transactions-blocks-with-endless-methods