Skip to content

Commit 79cb94a

Browse files
authored
Update README.md
1 parent 93b6f01 commit 79cb94a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,24 @@ end
224224
```
225225

226226
## FAQs
227+
- This is ugly isn't it?
228+
229+
```ruby
230+
class OuterOrganizer
231+
# ... boilerplate ...
232+
organize \
233+
SetupStep,
234+
self.each(:ids,
235+
LoadOrder,
236+
->(c){ byebug if c.order.nil? },
237+
DoSomethingWithOrder
238+
)
239+
end
240+
```
241+
242+
Yes I agree. It's early days and I'm open to syntax improvement ideas. This is really about it being conceptually less ugly than the alternative, which is to jump around between lots of files. In the existing alternative to using this gem the ugliness is not within each individual file, but within the overall hidden architecture and the hunting process of jumping around in complex interactor chains. We can't see that ugliness but we probably experience it. If you don't feel or experience that ugliness then this gem may not be the right fit for you.
243+
244+
227245
- Is this interactor/interactor-contracts compatible?
228246
Yes and we use them as dependencies. It's possible we'd drop those dependencies in the future but unlikely. I think it's highly likely we'd retain compatibility.
229247

0 commit comments

Comments
 (0)