News for hackers. Stuff that matters.
Re:Things I wish I knew about state management when I starte... by spion on Monday February 10, 2020 @02:29PM (#22292341)
For reference, here is a "simple" app - a parametric EQ designer that supports doing pink noise measurements of speakers (or headphones if you have the right equipment) with FFT in the browser: https://eq.spion.dev/ - works as an entirely static website :)

Typically what people say is "oh most websites won't need THAT" but the appetite for interactivity only grows with most companies, so you could easily end up in a slowly boiled frog scenario where your serverside HTML-JS mishmash is an absolute mess.

Re:Things I wish I knew about state management when I starte... by beefalo on Monday February 10, 2020 @03:56PM (#22293217)
What definition of static website are you using here? If I turn of JavaScript all i get is "You need to enable JavaScript to run this app."
Re:Things I wish I knew about state management when I starte... by Osiris on Monday February 10, 2020 @04:10PM (#22293387)
My definition of static website has always been the it doesn't communicate with a back-end.
Re:Things I wish I knew about state management when I starte... by mr_toad on Monday February 10, 2020 @05:15PM (#22293980)
Static websites don’t maintain state on the server. They can be as dynamic as you wish on the front end. But if you do a page refresh you get the same page you started with.