Ben Smith

Results 85 comments of Ben Smith

+1 on Mac OS X with Sublime Text 3 and Elixir installed via homebrew (`brew install elixir`) ``` SublimeLinter: debug mode: off SublimeLinter: elixirc activated: /usr/local/bin/elixirc SublimeLinter: elixirlinter activated: /usr/local/bin/elixirc...

@darraghenright's suggestion of using the [Fix Mac Path](https://github.com/int3h/SublimeFixMacPath) package fixed this issue for me.

I'm not sure whether there are any rules around whether contexts need to be consistently named in either plural or singular form. For example the [Phoenix documentation on Contexts](https://hexdocs.pm/phoenix/contexts.html) defines...

Sorry for the late reply, this is work in progress. It's as far as I've progressed with the example code until I've written the corresponding chapters in the book. It...

@andreapavoni Ecto changesets aren't used because the write model, which accepts commands, persists its state via domain events appended to an event store. There's a separate read model which later...

You can include any metadata [during command dispatch](https://github.com/commanded/commanded/blob/master/guides/Commands.md#event-metadata). It will be copied onto any events created by the command. ```elixir ExampleRouter.dispatch(command, metadata: %{"issuer_id" => issuer_id, "user_id" => "[email protected]"} ) ```...

@Yamilquery Yes I plan to either include a chapter on using GraphQL by integrating Commanded with Absinthe or write a separate article on the subject. I'm using this combination in...

@zhangzhen You could apply a similar approach to queries by using an authorisation library, like [Canada](https://github.com/jarednorman/canada), but define the permissions based upon your query modules. Define each available query in...

> What file should be the implementation of Canada.Can protocol put in? I have a separate "authorisation" app inside my umbrella that contains the policies, split by aggregate: - `apps/authorisation/lib/policies/challenge_policy.ex`...

@zhangzhen Feel free to contact via email ([email protected]). I'm sure you could use GenStage Flow for that scenario. My only advice would be to ensure you configure `max_demand` (and possibly...