3 ms·
> Hit F5 in the browser, get the latest version of your software. What about the state though? If I'm building a sophisticated app, let's say an e-commerce thi
by iLemming 4y ago
> Hit F5 in the browser, get the latest version of your software.
What about the state though? If I'm building a sophisticated app, let's say an e-commerce thing, imagine having to develop a shopping cart experience, where a user has to make multiple choices before getting to the shopping cart view. Every time you hit F5, you'd have to click a bunch of buttons, fill out fields, etc. Or you're gonna have to write a script that takes you there and restores the state, which is still time-consuming and annoying to have to do. With Clojurescript, I can change things in the code, eval it and the change would be reflected in the app immediately, without having to reload the entire app.
> it had this problem solved in the 90s
We weren't building many complex web apps back in the 90s, so the problems associated with hot-reloading weren't so apparent back then.
- cess11 4y agoYou could put some state in the session to keep it persistent across page reloads and get a result similar to continuations or however you're keeping that state on the JVM.