4 ms·
Hey! I made XState and just discovered it hit Hacker News (...great) To clarify, the new tag-line is "State machines and statecharts for the modern web." Some
by davidkpiano 8y ago
Hey! I made XState and just discovered it hit Hacker News (...great)
To clarify, the new tag-line is "State machines and statecharts for the modern web." Some of you are nitpicking the word "stateless" which describes the actual machine `.transition()` implementation (not the interpreter implementation), which returns the next state (+ actions, etc.) given the current state and event, but does not mutate or remember any state (hence, stateless).
Please don't focus on the word "stateless." I'd appreciate any other valuable feedback, though!
- seanmcdirmid 8y agoRather than say stateless, you can say no hidden imperative state or something a bit more accurate. It immediately popped out at me when I read the title just now, it’s like talking about dry water :)
- carapace 8y agoI remember the first time I encountered "Fat-free Half-and-half" in the grocery store. I must have stood there for a full minute, resisting the urge to stop passers-by and ask them, "But isn't that just milk?" ;-D
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- ArtWomb 8y agoThanks for building! Just got turned onto XState through a recent Chrome Dev summit talk where it's used to demo a simple stopwatch https://www.youtube.com/watch?v=Vg60lf92EkM https://www.youtube.com/watch?v=Vg60lf92EkM Curious what web frontend frameworks you are currently into. Or if you plan to use XState as the basis for something new. Looking at Gatsby, Apollo and other GraphQL based libraries. Appears to be a trend toward human-readable or even visual programming environments. XState could certainly be a powerful statechart management engine for this ;)
- davidkpiano 8y agoI appreciate the thanks :) I'm currently into React, but in a very light way -- I'm going to continue experimenting with how statecharts can (semi-)universally define the behavior of complex components in a way that can be integrated into any framework, or no framework at all. I've also managed to avoid frameworks for some UIs and just use XState + RxJS. For example: https://codepen.io/davidkpiano/pen/zWrRye https://codepen.io/davidkpiano/pen/zWrRye
- Kagerjay 8y agoI can't get any of the pen's interactive effects to work on my mobile device.
- davidkpiano 8y agoYou can fork the pen and implement them. Have fun!
- deleted 8y ago[deleted]