Skip to content

Commit

Permalink
remove TODO (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns authored Dec 27, 2023
1 parent 40ebba6 commit e27d3b2
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,27 +442,6 @@ I love the way they can be tested.
When I've used service objects, I've found them to be more complex to test and compose.
I can't see a clean way that using service objects to compose interactors could work well without losing some of the aforementioned benefits.

### TODO
We want to add support for explicitly specifying promises in organizers.

The benefit here is on clarifying the contract between organizers and interactors.

This is another variation of the "interactors themselves are great but their coordination and finding where things happen is hard in large applications".

By adding promise notation to organizers, we can signal to the reader that 'here in this part of the chain is the thing you are looking for'.

A writer of an organizer may expect LoadOrder to promise :order, but for the reader, it's not quite as explicit.
The expected syntax will be

```ruby
organize \
LoadOrder.promising(:order),
TakePayment.promising(:payment_transaction)
```

This will be validated at test time against the interactors promises.


## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down

0 comments on commit e27d3b2

Please sign in to comment.