But what I love about it is you can define the state machine. The example is very kind of React-driven.ĭave: At least from my point of view. The example is immediately, you know, it's just a JavaScript object, so I think anything could hook into it. It looks like it's pretty well supported in Vue, now that I'm just Googling the docs and stuff. That's probably one of the reasons I don't use it - to answer the question.Ĭhris: Right. Does it? Can you use XState in Vue?ĭave: I think there are adapters, but I don't know. Piano's project.ĭave: Just because somebody was like, "I'm going to make a state machine language, but I'm just going to offload all that state stuff to David's state machine."Ĭhris: It looks very React-specific. Yeah, it makes an XState, which is kind of awesome, and props to David's project, David K. It compiles to XState compatible state machines.ĭave: Yeah. In disabled, you hit a toggle event to go to enabled.Ĭhris: But it is still XState. You have to hit a toggle event to become disabled. Lucy, a concise language for describing finite state machines. It's like coffee-script for state machines or something.ĭave: Yeah, yeah, that's it. Yeah.Ĭhris: That looked a little bit - I don't know. I forget what the name of it is.Ĭhris: I saw something like that called Lucy (the other day), just like L-U-C-Y.ĭave: Yeah, it might have been Lucy. I think there was a state machine DSL, like a domain-specific language, basically like shorthand, like Markdown for state machines kind of thing somewhere. As far as I know, it's kind of the big name.ĭave: Yeah. You know?Ĭhris: You thought this would be how it would work and it didn't and that something like XState - I don't even know if there's really any big competitors to it. I think the concept, though, is that if you're a little more - I don't know - emphatic about it or lean into that structure or model it before you do it that (I think, in David's words) can eliminate a whole category of bugs.Ĭhris: That there are an awful lot of bugs on websites that are essentially state problems, like your app got into a state that it should have never gotten into because you just didn't - I don't know. There are a lot of things like this state moves to this state moves to this state. I've heard David speak on it, and he says a lot of things we do are State machines already, so it's not like you're unfamiliar with the concept of it. I've published articles on this - not my own writing but on CSS-Tricks, which I tech reviewed and all that stuff. You know I've read article after article. Have you guys any experience with XState or state machines in general? Keep up the good work." While I'm finding the learning curve a little steep, I can see the benefits of managing state via a finite state machine. Decided to make state machines a full-time gig.Ĭhris: "We are slowly adopting it within our large React application at the company I work for. Luke Brown writes in, "What are your thoughts on XState?" You know XState, right, Dave?Ĭhris: Isn't that David Khourshid's thing who now kind of has a whole team behind him, I think?Ĭhris: Quit his job. Let's get started with doing some of them. A bunch of you do that, and please continue doing that. They could be just general topics that you think are interesting or things you want to share with us. Getting back to the heart, the original intention of ShopTalk Show audio podcast where you call in or more like use your fingers to write in questions about stuff. So-Ĭhris: All right, well, we thought we'd do a bunch of questions that you write in. I do not have that problem here in Texas.ĭave: One: Don't leave the house. I'm doing all right.Ĭhris: Had to ride my - it was really cold this morning and - whatever - I had to ride my bike a long way, and my hands are cold.ĭave: Oh, man. How are you doing today, Chris?Ĭhris Coyier: Yes, man. I'm Dave-in the shed-Rupert and with me is Chris-in the booth-Coyier. You're listening to another episode of the ShopTalk Show, a podcast all about front-end Web design and development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |