DEV Community

loading...

Discussion on: Matching your way to consistent states

Collapse
exadra37 profile image
Paulo Renato

Handling state transitions, and make sure they don't end up in an invalid state seems a good fit for the Finite State Machine concept. Did you ever explored it?

Collapse
gillchristian profile image
Christian Gill Author • Edited

Yeah, as you say, when you need to make sure transitions are valid state machines are the way to go. I did explore them a bit but never went deep into the topic.

Do you have any good resources for state machines in TypeScript?

Collapse
exadra37 profile image
Paulo Renato

Unfortunately no.

I cam across them several times but never cared about to dive on the matter, until I read this post in the Elixir forum, where the author links to 2 videos that helped him to create his Finite State Machine library for Elixir.

Despite being the Elixir community, feel free to ask if they know something specific for TypeScript, because they are very open to discuss other languages, and they are a very nice bunch o people.