News for hackers. Stuff that matters.
Re:Thoughts on Svelte by marcelr on Monday March 27, 2023 @09:05AM (#35326177)
I wouldnt say this is a problem unique to svelte

Ive designed svg based editor systems in svelte & the crucial piece was xstate.

I had editors with 7+ states, that is copy line, edit point of line, split line, draw line, etc.. and with xstate, no matter how much i added features each file would be 25-50 lines with some outliers at 80.

Id highly recommend it.

Re:Thoughts on Svelte by h4ch1 on Monday March 27, 2023 @09:30AM (#35326457)
Xstate looks very interesting, certainly going to take a look, thanks!
Re:Thoughts on Svelte by dsego on Monday March 27, 2023 @09:50AM (#35326661)
Is xstate something like redux or mobx?
Re:Thoughts on Svelte by phpnode on Monday March 27, 2023 @11:34AM (#35328040)
it's like a much more structured, and observable version of redux. observable in the sense that not only can you tell what has happened, you can also tell (and visualise) what can happen next
Re:Thoughts on Svelte by johtso on Monday March 27, 2023 @01:14PM (#35329369)
Yeah, the first time you realise you can set the disabled state of a button using `state.can('submit')` it feels like magic!