News for hackers. Stuff that matters.
Re:Do Not Follow JavaScript Trends by Tade0 on Tuesday June 16, 2020 @11:31AM (#23540330)
> As someone who has used Angular 2 since beta, I can tell you, it's been a bumpy ride nonetheless.

Oh yeah. I remember the "let's just apply the good parts of AngularJS here and there" in v4-6.

"React was built for Facebook, which is a large company building a large-scale application."

One large scale application, which is not enough to create stable conventions that are badly needed in a framework that's supposed to be used in multiple such projects done by very different organisations.

Personally, I hope that server-side rendering will be the new ~old~ trend.

Users don't tolerate the inherent delays caused by this approach anymore.

All those hoops current frameworks are jumping through so that we can eat the cake and have it too are there because of this.

Re:Do Not Follow JavaScript Trends by mark_and_sweep on Tuesday June 16, 2020 @01:22PM (#23541636)
> Users don't tolerate the inherent delays caused by this approach anymore.

Well, I'm from Germany, but have a 6-y/o Android phone and live in a rural area with poor EDGE connectivity (~50kb/s). Most "modern" websites don't load/work for me.

From my personal experience, there's quite a few people now saying that their computing devices are getting faster and faster every year whereas the majority of websites, uh, webapps are seemingly getting slower each year...

This is also not just a problem with mobile and poor connectivity. Here's an example from my high-powered desktop work-station with a 100 mbits: When I open https://github.com/, my repositories (on the left) are server-rendered and shown instantly as the site is loaded, which usually happens in under 1s. The activity feed in the middle is rendered asynchronously on the client. It usually takes around 3-6s to finish rendering on my machine (while there is space for 5-8 activity feed items on my screen).

Optimizing SPAs is notoriously hard. You don't really have to optimize HTML.

Re:Do Not Follow JavaScript Trends by yxhuvud on Tuesday June 16, 2020 @12:21PM (#23540965)
> Users don't tolerate the inherent delays caused by this approach anymore.

Well, I certainly also do not tolerate the delays in contemporary React sites either. Take Reddit for example, which used to be lightning fast when it was mostly serverside, which now is painfully slow, especially on mobile.

Re:Do Not Follow JavaScript Trends by tfleming on Tuesday June 16, 2020 @04:36PM (#23543761)
Yep, I agree. Was just talking to my wife about Reddit. It's so slow now, especially on mobile. The page constantly crashes on my Android phone and they always recommend the app. No thanks.
Re:Do Not Follow JavaScript Trends by nefitty on Wednesday June 17, 2020 @03:32AM (#23548803)
Today is the day I decided to switch to old reddit... My Mac can run garageband and vsc and 40 chrome tabs at once, but as soon as I click a front page Reddit link, that modal is like pouring sludge into my computer.