3 ms·
In this thread: people confusing server rendering (like your old PHP) with SSR (same Javascript codepath for client and server, i.e. Next.js) One is easy, the
by sph 5y ago
In this thread: people confusing server rendering (like your old PHP) with SSR (same Javascript codepath for client and server, i.e. Next.js)
One is easy, the other is the definition of leaky and crappy abstraction. This article is about the latter technology.
- DangitBobby 5y agoIts a bit leaky, but I wouldn't call it crappy. What's crappy about it? Be specific.
- sph 5y agoThis article is a good start.
- DangitBobby 5y agoI've read the article. The pain points exist, but they are not insurmountable. I'd go as far as to say they are being a bit dramatic.
- grey-area 5y agoCompared to traditional server side rendering, the article describes a hellscape of self-imposed complexity. Why would anyone choose this?
- DangitBobby 5y agoYou choose something like react for the frontend if you need heavy interactivity, something closer to a desktop application than a traditional web app. Then you choose tools like Next.js that will do SSR for you so you can take advantage of how good browsers are at rendering HTML.
- grey-area 5y agoThe needs you describe are incredibly rare. Facebook for example doesn’t have heavy interactivity closer to a desktop app. You can also do interactivity just fine with Ajax. These frameworks bring nothing but complexity and confusion. Also, how good browsers are at rendering html has nothing to do with next js. Browsers don’t care where the html came from.
- tootie 5y agoConfusion is by whoever wrote the headline. Server side render is easy. Isomorphic is hard.
- Widdershin 5y agoYeah I was planning on changing the title, and then woke up on HN. Oh well.
- dimgl 5y agoI think you're confused as well. Most frameworks that provide any kind of HTML rendering method can do server-side rendering. The trickiness is making them isomorphic. > the other is the definition of leaky and crappy abstraction Well that's just like, your opinion man.