Farzad Yousefzadeh
Lead developer @epicgames. Core @statelyai. Coach @mentorcruise. ❤️ Statecharts, Finite State Machines, and XState.
Farzad Yousefzadeh
Senior Frontend Engineer @epicgames
Into State machines and Statecharts
interface Actor {
state: State;
send(event): void;
receive(event): void;
}
Source actor
Editor actor
Preview actor
Auth actor
Notification actor
Retriece source with ID
Update the source when save button is pressed
Prefill the editor with the retrieved source
Parse the markdown source
Preview the parsed markdown
Sign in
Sign out
Toast fancy messages
Auth actor
Source actor
Editor actor
Preview actor
Notification actor
Reading ID and Source
Saving source
Edit markdown
Check user session and user info
Compiling and previewing
Only spawn needed actors
Complexity comparison and dynamically spawning actors
if it can send an event, receive an event, have a private state, then it's a duck Actor
By Farzad Yousefzadeh
A new mental model for modeling React applications at scale @React Finland 2021
Lead developer @epicgames. Core @statelyai. Coach @mentorcruise. ❤️ Statecharts, Finite State Machines, and XState.