| ▲ | ADevWithAnIdea a day ago | |
> Ugly state is exactly what Rust was made for. It forces you to tame the ugly state instead of hacking at it and hoping it works. I'm not an expert on GUIs, but my understanding of them is that the ugly state is sort of inherent to GUI applications and you can't tame it. Ie, everything interconnects with everything else and there's not much you can do about that. This sort of inherently pushes you to a big runtime that manages a lot of stuff for you, which is in line with GUIs being rather expensive generally (ultimately you have to render everything to the screen). | ||
| ▲ | kaoD a day ago | parent [-] | |
Maybe I can understand better with an actual example? I might just be biased by React's mindset, but I've always considered two-way binding (and any non-unidirectional data flow) a mistake, and it has only brought me pain and sorrow. In other words: the patterns I use outside of Rust are also Rust's happy paths (on paper, maybe I'm just missing something?) (For clarity: I'm talking of userland here. I assume that's what OP meant by "UX" -- I agree with your "big runtime" point, but that's why my RAM is filled by Electron apps.) | ||