Is there a good discussion somewhere of the pros/c...
# mvikotlin
s
Is there a good discussion somewhere of the pros/cons of using the term
Event
vs the term
Intent
?
a
I didn't see any. But it feels natural to use Event for something that already happened, in the past tense. And use Intent or Action for a call to action, in an imperative mood.
s
That makes sense to me too, but the MVI libraries choose one : usually either
Intent
or
Event
to represent the thingy that will be fired into the dispatcher/reducer/etc to change the state. Since I-ntent is in the acronym, that feels more natural, but it seems that many frameworks use
Event
instead.
a
In MVIKotlin there's kinda a naming convention. A store accepts Intents. The reducer accepts Messages, or the same Intents if there is no Executor. Events are produced by views.
s
Got it.
a
But if you don't want to have both Events and Intents and mappings between the two, then I would advise to use just Intent.