https://kotlinlang.org logo
#library-development
Title
# library-development
r

ross_a

11/20/2018, 10:12 AM
Hey all, been working on a DSL for building finite state machines please check it out if this interests you and ping me if you have any suggestions for improvement https://github.com/rossdanderson/finite
j

Joe

11/21/2018, 2:13 PM
I've also been looking at FSMs a lot lately but where I have been really getting stuck is around not just transitioning from one state to another but in doing something in that transition (and making those side effects atomic and testable). In your example, the state transitions make complete sense, but other than describing the actions of a phone, nothing is really happening. If this was actually describing a VOIP app, where would the network calls and UI changes actually live? Would they need to be added when the DSL is used or are they added to the states/triggers themselves?
2 Views