News for hackers. Stuff that matters.
Re:Web Components could replace frontend frameworks? by pjmlp on Friday April 12, 2019 @03:10AM (#19642681)
If I need to use server side rendering, there are plenty of server side rendering frameworks more mature than React/Preac.

Any JS component library needs JS by definition.

Re:Web Components could replace frontend frameworks? by RussianCow on Friday April 12, 2019 @12:34PM (#19646363)
> If I need to use server side rendering, there are plenty of server side rendering frameworks more mature than React/Preac.

Not if you need both server-side rendering AND a rich frontend. Unless you want to duplicate logic between two frameworks.

Re:Web Components could replace frontend frameworks? by pjmlp on Friday April 12, 2019 @01:42PM (#19647154)
Server-side rendering and a rich frontend are orthogonal.

And yes, JavaScript is absolutely not the best way to actually make use of the server rack.

https://www.techempower.com/benchmarks/

Re:Web Components could replace frontend frameworks? by RussianCow on Friday April 12, 2019 @01:55PM (#19647280)
They are, unless you want to avoid duplicating logic, like I said. That's where most of the benefit of server-side rendering via JS comes from: you can render the initial page on the server, but then have the client-side framework take over on load, all from the same framework and with very minimal code duplication. Otherwise you have to write most of your rendering logic twice, in two different languages/frameworks.

Re: benchmarks, I don't know what that has to do with anything. JavaScript (via V8) is much faster than Ruby and Python, and yet Rails and Django are still massively popular. For most apps, using a super fast backend language is not a concern.

Re:Web Components could replace frontend frameworks? by pjmlp on Friday April 12, 2019 @04:34PM (#19648709)
I rather go with rendering performance of HTML, CSS and minimal JS.