News for hackers. Stuff that matters.
Re:Rebuilding our tech stack for the new facebook.com by Kaze404 on Friday May 08, 2020 @01:03PM (#23116953)
What makes you think React/Angular are products to increase user experience? Of course you won't find that, they are tools for developers to streamline development and make maintenance easier. Have you worked on a platform that uses nothing but pure JS and fetch calls? I have, and there's no way to make sense of a project that has to deal with so many things.
Re:Rebuilding our tech stack for the new facebook.com by tambourine_man on Friday May 08, 2020 @01:16PM (#23117095)
>they are tools for developers to streamline development and make maintenance easier.

I'm not convinced they are successful at that either.

Re:Rebuilding our tech stack for the new facebook.com by revscat on Friday May 08, 2020 @01:15PM (#23117077)
Re:Rebuilding our tech stack for the new facebook.com by BoumTAC on Friday May 08, 2020 @03:48PM (#23118692)
why is it downvote ? This link just show you can create a basic twitter like application in 10 minutes with the right tool. Imagine how many hours/days it would take with any JavaScript framework !
Re:Rebuilding our tech stack for the new facebook.com by Kaze404 on Friday May 08, 2020 @03:50PM (#23118722)
Probably because a Twitter close isn't even close to a complex application. You can build one in React/Vue just as fast as you would without them.
Re:Rebuilding our tech stack for the new facebook.com by tambourine_man on Saturday May 09, 2020 @02:10PM (#23127036)
Yeah, it's a common trope. Everyone can create a Twitter/Facebook/Instagram clone in a week or so of intense work. But that's not actually the hard part. What's hard is getting millions of users in the first place and scaling to that magnitude. In that order.
Re:Rebuilding our tech stack for the new facebook.com by datasage on Friday May 08, 2020 @01:19PM (#23117137)
Anytime you need to stream data to or from a client, like audio/video or data. Single page apps have a much better experience.

From an architecture standpoint, it does also allow a much simpler separation of concerns.

That said, it does it get used more often that it should and can take more time to build than a multi-page app.

Re:Rebuilding our tech stack for the new facebook.com by dralley on Friday May 08, 2020 @04:44PM (#23119241)
Fucking gmail, for example.

The new SPA version is far, far slower than the old HTML version, and uses a truly insane amount of memory. I have 2 gmail tabs open, and according to Firefox's about:performance page, one is using 140mb of RAM, the other is using 95mb, and both are at the very top of the list in terms of CPU usage. Above even YouTube in both CPU and memory, which is itself fairly bloated.

It is absolutely disgraceful.

Re:Rebuilding our tech stack for the new facebook.com by neop1x on Sunday May 10, 2020 @05:25AM (#23131360)
Google Cloud Console felt slow to me too. And the user experience could sometimes be better too. For example: I set filters in a table of items, clicked many times to Next to paginate on the 10th page. Then I accidentally clicked on an item on the page, detail page shows. Clicking browser' Back button takes me back but the filter is cleared and I am on the page #1 again. State was not persisted so I could start filtering and paginating again. I am not 100% sure but I think it was the Quota listing. The old, document-style pages used to hold state!
Re:Rebuilding our tech stack for the new facebook.com by Benjammer on Friday May 08, 2020 @01:20PM (#23117150)
Humans have been using physical and mental systems to manage complexity for eons, I simply can't understand this argument. React doesn't automatically fix spaghetti code if you don't know how to organize a platform-sized code base efficiently in the first place.
Re:Rebuilding our tech stack for the new facebook.com by aerovistae on Friday May 08, 2020 @01:30PM (#23117258)
This is like saying "cabinets don't help organize a kitchen if you don't put anything in them" -- I mean, duh, you have to use it right. That's not an argument to have no cabinets.

There's a reason nearly ALL major web applications rely on a _framework_....rails, django, laravel, you name it. These exist because it's really hard to organize vanilla code without a framework. React and FE JS are no different.

If you're arguing against using a FE framework to organize FE code, you're basically saying "We don't need frameworks in general! All code should be inherently organized!" That's not realistic. It's just not feasible when you have a large project.

Re:Rebuilding our tech stack for the new facebook.com by marcodave on Friday May 08, 2020 @01:51PM (#23117496)
> This is like saying "cabinets don't help organize a kitchen if you don't put anything in them" -- I mean, duh, you have to use it right. That's not an argument to have no cabinets.

Good counterpoint. Parent comment sound too much like the "TRUE programmers don't use data structures" old meme

Re:Rebuilding our tech stack for the new facebook.com by Benjammer on Friday May 08, 2020 @02:37PM (#23117981)
Yeesh, you've badly misinterpreted my comment. Re-reading it, I'm partly to blame here.

>That's not an argument to have no cabinets.

This isn't the point I was trying to make. I didn't mean to piggy back on this part of the parent comment: "Have you worked on a platform that uses nothing but pure JS and fetch calls?"

I meant to respond to this part of the parent: "they are tools for developers to streamline development and make maintenance easier." I often find that the most ardent React fans will see "not React" and jump immediately to "spaghetti of vanilla js and fetch calls," with no further questions asked.

I'm trying to argue against React dogmatism, I'm not arguing in favor of "no framework" dogmatism.

Re:Rebuilding our tech stack for the new facebook.com by asdkhadsj on Friday May 08, 2020 @03:11PM (#23118310)
Well, if we take a step back from React and talk about a sort of data-first approach to UIs, I think they are definitely, much easier than the old jQuery era.

Mutable state, notably knowing all possible variations of said mutable state and how it relates to everything, is very difficult imo.

Is React the best implementation of this? Definitely not. It will evolve as time goes on. But I don't think I could ever manage state in the jQuery mutate-everything model again.

Re:Rebuilding our tech stack for the new facebook.com by Kaze404 on Friday May 08, 2020 @02:59PM (#23118196)
To be clear I'm not advocating for React on every possible use case. In fact I've grown weary of it over the years, but not for the reasons the comment I was responding to pointed out. My point is that React makes the process of organizing frontend code easier, not that it's the only way to do so.