News for hackers. Stuff that matters.
Re:Events: Fat or Thin? by mrkeen on Sunday October 30, 2022 @09:48AM (#33394478)
I agree in principle, but I also to need action commands when crossing boundaries in and out of the event system (e.g. to the user, or to an external provider.) Of course I still phrase them in the past tense:

    PurchaseRequested { userId = ... }

    PaymentRequestSentToStripe { userId = ... }
It really helps with debugging, especially if the user gets into some failed state (and the events tell you that they accidentally requested twice)

There are no comments on this comment yet.