Encapsulating Business Transactions With Transflow
It’s a known fact that when you deal with a big problem it’s good to split it into smaller problems, solve them in isolation using separate components and use an integration layer to combine them into a single unit. Unfortunately it’s easier said than done. In an OO language like Ruby there are countless approaches you can take to tackle complex scenarios in your application. Objects accumulating state, which gets mutated as a result of some business transaction, is already a complex thing to deal with....