Re:The Return of the 90s Web
by Polylactic_acid on Thursday June 18, 2020 @07:41PM
(#23569391)
The less stuff on the server the better imo. Whenever I can get away with it I use a static site generator or I use vuejs with a json file containing all the data for the site. Being able to just drop a static set of files in to a webserver without any risk of security issues in my code is great. I also hate the tools for backend rendering since if you need any kind of interactivity it becomes so much easier if you had just built it all in vue/react with no downsides other than not running in someones cli web browser.
[ Parent
| on HN ]
Re:The Return of the 90s Web
by djhaskin987 on Friday June 19, 2020 @12:47AM
(#23571051)
At my old company they were moving from client-side to server side because they had 30 different clients -- Roku, desktop, smartphone, Xbox, etc. -- and all of them had to reproduce the same logic. At the time I left they were trying to centralize all of that logic on the server and then just put the lipstick on the pig at the end.
Phoenix LiveView gives you excellent interactivity with backend rendering.
I desperately want to check that out when I have some free time.
(In other news, I would desperately like some free time)
There are quite a few others inspired by Liveview. On ASP.Net , PHP Laravel, Python Django and Stimulus Reflex on Ruby Rails.
> I use vuejs with a json file containing all the data for the site
Seconded. It makes hosting a breeze; especially when you can just throw it on GitHub Pages within minutes. I also like being dependent on only a text editor and a browser ... a combo still performant on just about any device from the last 20 years if not longer. No need to install full-featured IDEs and the various dependencies.
> Being able to just drop a static set of files in to a webserver without any risk of security issues in my code is great.
What security risks are removed by using a client side app instead of a server side one?
Re:The Return of the 90s Web
by Polylactic_acid on Sunday June 21, 2020 @07:21PM
(#23596143)
No database, no code running on your system other than nginx which I trust a whole lot more than myself.