Live data from Hacker News

Ask HN: Server side rendering is now a good idea?

news.ycombinator.com

1–10 of 43 posts

Ask HN: Server side rendering is now a good idea?

#1
Thanks to the speed of the internet, I’m beginning to feel that logic on server side with PHP or other server side technology, is just as interactive as JavaScript - without the complexity of React, Angular [insert framework here] and associated package and state management.

Oh, and security!

Thoughts?

Re: Ask HN: Server side rendering is now a good idea?

#6
Always has been.

I think that you do need interactivity through JavaScript at some point. And I find react and similar easier to maintain than an HTML/JS soup generated by PHP, JSP, or RoR.

I would take a look at https://fresh.deno.dev/ or https://kit.svelte.dev/ or https://nextjs.org/

Re: Ask HN: Server side rendering is now a good idea?

#7

checkout how rails does best of both worlds with something called "turbo" https://www.hotrails.dev/turbo-rails/crud-controller-ruby-on...

Turbo is just a JS library, not tied to rails. I use it with golang and I love it! It offers a nice tradeoff between heavy custom HTML attributes and too much 'convention over configuration'. Also pairs nicely with alpine.js

Re: Ask HN: Server side rendering is now a good idea?

#8
It's a lot simpler for sure these days. I've built my indie startup with Phoenix Liveview. It's all server side rendered, with liveview sprinkling in interactivity.

Can you tell it's server side rendered? https://www.gamedrop.gg/lists/slymilano/exciting-game-releas...

https://www.gamedrop.gg/game/hogwarts-legacy

I think there are similar tools in other platforms like Rail's and Laravel.

Re: Ask HN: Server side rendering is now a good idea?

#9

Always has been. I think that you do need interactivity through JavaScript at some point. And I find react and similar easier to maintain than an HTML/JS soup generated by PHP, JSP, or RoR. I would take a look at https://fresh.deno.dev/ or https://kit.svelte.dev/ or https://nextjs.org/

Others worth a look:

- Qwik[1]: code is very similar to React, only the interactive parts are sent to the browser, and they only execute on demand (eg when you interact with the thing)

- Astro[2]: probably the most popular “islands” framework, lets you bring your own interactive framework

- SolidStart[3]: doesn’t mention in the docs yet for some reason, but also supports “islands” in SolidJS, which is also one of the fastest client frameworks and also will feel familiar coming from React

[1]: https://qwik.builder.io/

[2]: https://astro.build/

[3]: https://start.solidjs.com/getting-started/what-is-solidstart

Post reply on HN