Originally published on Gandalf’s official blog, but I wanted to hare it here to reach as many developers as much as possible.
But first, my thoughts:
As a software developer, especially one with little experience, it’s very easy to get confused about what you should do and what you shouldn’t do.
At BuyCoins, we use the Interactor gem for business logic. It works like this:
Say you have an Interactor called SendCoins. You call can trigger it’s functionality by doing
SendCoins
SendCoins.call(amount: 0.5…
With a real world example