3 ms·
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 da
by Polylactic_acid 6y ago
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.
- lawn 6y agoPhoenix LiveView gives you excellent interactivity with backend rendering.
- djhaskin987 6y agoAt 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.
- y-c-o-m-b 6y ago> 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.
- timwis 6y ago> 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?
- ashleyn 6y agoNone, you're just shifting the risk to the user.
- Polylactic_acid 6y agoNo database, no code running on your system other than nginx which I trust a whole lot more than myself.