Re:Hanami 2.0 (Ruby): Better, Faster, Stronger
by solnic on Tuesday November 22, 2022 @10:21AM
(#33706724)
Hanami 2.0 doesn’t have any interactors
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger
by Draiken on Tuesday November 22, 2022 @11:34AM
(#33707610)
Oh, I saw an example with `app/operations` and assumed they were just renamed.
Guess that changes everything for me. Will definitely give it a try.
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger
by ryanbigg on Tuesday November 22, 2022 @01:00PM
(#33708713)
Which example?
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger
by solnic on Tuesday November 22, 2022 @01:47PM
(#33709428)
Haha no it's just an example of a custom directory that you can place under app dir We're still thinking about an abstraction for operation-like objects (I actually started experimenting with this a couple of months ago) but I don't think it will become part of the main Hanami stack.
But interactions are a plague. People start chaining interactions and very soon you have a maze of these things, with all the domain logic lost inside of these procedures and almost no POROs in sight.
Most of these complaints are, of course, not inherently the fault of these commands/operations/interactions, but they make it so easy to create these monstrosities that I have to put some of the blame on them.