News for hackers. Stuff that matters.
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.
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.
Re:The Return of the 90s Web by lawn on Thursday June 18, 2020 @09:24PM (#23570073)
Phoenix LiveView gives you excellent interactivity with backend rendering.
Re:The Return of the 90s Web by JohnBooty on Friday June 19, 2020 @02:48AM (#23571739)
I desperately want to check that out when I have some free time.

(In other news, I would desperately like some free time)

Re:The Return of the 90s Web by ksec on Friday June 19, 2020 @11:56AM (#23575715)
There are quite a few others inspired by Liveview. On ASP.Net , PHP Laravel, Python Django and Stimulus Reflex on Ruby Rails.
Re:The Return of the 90s Web by y-c-o-m-b on Friday June 19, 2020 @02:58PM (#23577755)
> 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.

Re:The Return of the 90s Web by timwis on Saturday June 20, 2020 @05:23AM (#23582831)
> 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.
Re:The Return of the 90s Web by ashleyn on Sunday June 21, 2020 @11:24AM (#23592484)
None, you're just shifting the risk to the user.