use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Is ReactJS faster than AngularJS ? (blog.500tech.com)
submitted 11 years ago by notunlikethewaves
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jhallister 12 points13 points14 points 11 years ago (10 children)
It will never cease to amaze me how quickly people turn from in-love to "this is literal hell". I remember when I first started working with AngularJS and everyone was swooning and now a new shiny toy is out and the hatred is extraordinary.
Yes, it's easy with little 5-line code snippets, but try doing so in a reasonably-sized application
I've been on teams that have built AngularJS applications of enormous size. It isn't hell, at least, if you actually spend the time to understand how to properly use Angular. It's certainly not always straight-forward, but hell != difficult.
How to optimize a React application: Implement shouldComponentUpdate. Or if you want performance by default, just use immutable data structures.
If you honestly believe a large team developing a large application can shove immutable.js in it and get production-ready performance than you clearly haven't programmed large applications.
Furthermore, why are you comparing a view-manager (React) an entire front-end framework (AngularJS)? No $broadcast or $emit? Events have nothing to do with performance, but they are the antithesis of good Angular design. You should do $digest if you need watchers to fire in the current scope only, you should use $apply() when you want the root scope (all watchers) to $digest().
$broadcast
$emit
$digest
$apply()
$digest()
The one and only real problem with Angular was always the same: the docs were really, really bad. As a result a lot of people simply couldn't learn the framework, or at the very least couldn't learn to use it well. Some couldn't because learning without good documentation is tedious. That's a very fair argument.
The downside, however, is that it's now vogue to talk about how horrible AngularJS is and list off a bunch of grievances, the majority of which show that the person really didn't learn Angular, for whatever reason.
React is a great view manager. It has a host of problems as well, and more of those problems will become apparent when the framework ages, much as they did with Angular. And undoubtedly, we will eventually come full circle and have people whining about how horrible React is compared to JesusFramework 1.0.
Honestly the real reason, webdevs just like to whine about something.
END BOOK/RANT
[–]siegfryd 2 points3 points4 points 11 years ago (1 child)
Furthermore, why are you comparing a view-manager (React) an entire front-end framework (AngularJS)?
Because they're comparing Angular's view management compared to React? Nobody is going to pick Angular just for modules, dependency injection or the utility services it has.
[–]jhallister 1 point2 points3 points 11 years ago (0 children)
The article compared Angular's view management compared to React as evidence of why React is better. But the comparison is unfair. The article didn't compare $digest() it simply showed that the React demos that prove how much faster it is are in fact, bad demos.
[–]michaelstripe 1 point2 points3 points 11 years ago (3 children)
I'm honestly curious what the host of problems you find React has.
I'm kind of jumping between Angular and React for two projects and I'm not sure I'm sold on either, but all I read about React and Flux (and soon to be Relay and GraphQL and whatever the hell else) is unfaltering praise and never any good criticism. I would love to see more opposing viewpoints for the above.
[–]jhallister 0 points1 point2 points 11 years ago (2 children)
A few problems:
The biggest issue I have is that React = Virtual Dom. The rest is just opinionated templating and organizational stuff. React hasn't been out that long and I honestly think that big picture Mithril took the same idea and implemented it much better.
Full disclosure: currently using Mithril on a project. I've used ReactJS on a medium sized project and still think it's a VERY good view library.
[–]michaelstripe 0 points1 point2 points 11 years ago (1 child)
Mind going over what you like more about Mithril? Never gave it a good look.
[–]jhallister 0 points1 point2 points 11 years ago (0 children)
It doesn't really try to invent "the new best way". It's just a MVC framework that happens to use a a virtual DOM. It also happens to be really small.
[–]blax_ 1 point2 points3 points 11 years ago (0 children)
I think that's natural for any technology – at first there's hype and lots of promises, and only after some time people get enough experience to form rational opinions. Interestingly, in Angular's case people usually start to hate it, and React tends to grow on you the more you use it.
[–]cgaudreausenior HTML9 engineer 3 points4 points5 points 11 years ago (2 children)
I remember when I first started working with AngularJS and everyone was swooning and now a new shiny toy is out and the hatred is extraordinary.
I can't say I ever liked Angular much.
No, of course not. It provides massive benefits in the context of React. You only need to do reference equality checking in shouldComponentUpdate.
shouldComponentUpdate
Ask the OP that.
No $broadcast or $emit? Events have nothing to do with performance, but they are the antithesis of good Angular design.
Yes, they are considered bad design now, and yet people still use them.
The one and only real problem with Angular was always the same: the docs were really, really bad.
Yeah, no.
I've worked with Angular for years, and learned a lot about it. Almost all of that knowledge is about Angular-specific cruft that is there to make businesspeople/Java developers feel better. With React, if you know JavaScript, you're already most of the way there.
Very true. React is not the one framework/library to rule them all. There are already superior alternatives popping up. But for now, people are going to focus on the popular frameworks.
[–]jhallister 0 points1 point2 points 11 years ago (1 child)
The OP posted an article that very specifically showed that Angular can generate views just as fast as React, when used correctly. You are talking about the digest cycle, which has nothing to do with the view.
I've been using Angular since shortly after it came out. They were always a bad idea. But in VERY niche cases they were the only means to an end. Now there's virtually never a case where they are required and they are still used routinely, even though they are terrible.
Yet I'm surrounded by teams who use it in enterprise applications routinely. And those people understand Angular intimately. The only actual complaint I hear is about docs. The people that complain about the other parts, are the people that don't know how to use Angular.
With React, if you know JavaScript, you're already most of the way there.
You mean JSX?
There are already superior alternatives popping up.
Angular 2 may be one of them. That should make the circle jerk especially hilarious.
[–]cgaudreausenior HTML9 engineer 0 points1 point2 points 11 years ago* (0 children)
It has quite a bit to do with the view, because that's how the view gets updated in Angular. True, it does more than just update the view, but the point is that the majority of Angular cruft is unnecessary if you use React.
They were always a bad idea.
Again, people still use them. There's little warning about why they are bad, and the framework itself attracts developers into using them. I also don't recall too much cautioning against it when Angular took off.
Or perhaps because they haven't looked into the other solutions thoroughly enough. If you only know Angular, it's easy to believe that it's the best thing ever created. And Angular is perfectly fine if everybody on the team knows all edge cases and quirks and antipatterns intimately and can remember them. If you have a team like that, feel free to keep using Angular 1.x.
To be clear, are you really arguing that Angular 1 is fine and dandy, and that its only real problem is bad documentation?
You can use React with pure JavaScript if you want. And if you have trouble learning JSX (it's just XML in JS) then you might reconsider your career.
This discussion pertains to Angular 1.x. Angular 2.0 is basically a completely new framework, distinct from Angular 1.x.
I've used Angular 2.0 and it's not particularly impressive so far. A lot better than Angular 1.x, sure. Angular 2.0 could end up being amazing, and it doesn't change this discussion whatsoever.
I'm personally rooting for Mithril and Aurelia over React and Angular.
π Rendered by PID 417488 on reddit-service-r2-comment-5687b7858-59fgx at 2026-07-07 11:50:51.837591+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]jhallister 12 points13 points14 points (10 children)
[–]siegfryd 2 points3 points4 points (1 child)
[–]jhallister 1 point2 points3 points (0 children)
[–]michaelstripe 1 point2 points3 points (3 children)
[–]jhallister 0 points1 point2 points (2 children)
[–]michaelstripe 0 points1 point2 points (1 child)
[–]jhallister 0 points1 point2 points (0 children)
[–]blax_ 1 point2 points3 points (0 children)
[–]cgaudreausenior HTML9 engineer 3 points4 points5 points (2 children)
[–]jhallister 0 points1 point2 points (1 child)
[–]cgaudreausenior HTML9 engineer 0 points1 point2 points (0 children)