News for hackers. Stuff that matters.
Re:Htmx, Raku and Pico CSS by shortrounddev2 on Tuesday September 10, 2024 @07:57AM (#41499864)
Vanilla js is unstructured. It's very easy to write spaghetti code with vanilla js.

Sessions are a kind of global state. I mean temporary state, like when filling out a form and moving from one page to the other, but without submitting the results until the end.

Re:Htmx, Raku and Pico CSS by JodieBenitez on Tuesday September 10, 2024 @10:48AM (#41501352)
> Vanilla js is unstructured.

Functions, classes, modules... everything is available to organize code. The mess some programmers make can be unstructured, but that's the case with any paradigm and yes, we've seen that with "modern" JS frameworks too. Spaghetti mess, lasagna mess, components mess or whatever pasta mess.

> I mean temporary state

What is the problem here ? It's as temporary as you need it to be.

Re:Htmx, Raku and Pico CSS by shortrounddev2 on Tuesday September 10, 2024 @11:21AM (#41501682)
Temporary state does not need need to be sent to the server, it can be managed in localstorage