TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Which would you use for a new Project (ReactJS or AngularJS)?

9 pointsby ericthegoodkingover 10 years ago

7 comments

slashnullover 10 years ago
Well,<p>1) if I understood correctly, the design of Angular has some inherent, and rather large, performance hits.<p>2) Google isn&#x27;t dogfooding Angular save for one project. Facebook seem pretty serious about doing all new developement in React.<p>3) the specific kind of developement they&#x27;re doing is similar to the one I have to do right now, viz. taking an established mostly static page and adding bits of highly interactive and dynamic behavior here and there. Google used Angular to reimplement the app from scratch. I can&#x27;t afford that.<p>4) Angular, at what will probably the top of its popularity right now, just broke all interfaces and syntax and everything during the passage to 2.0, for reasons that were never fully explained (to me at least). Facebook won&#x27;t be able to do that without breaking the proportionally large investment they had so far with React.js and incurring significant costs, which is nice and stable and comfortable. If the benefit&#x2F;cost ratio of React 2.0 (or 1.0, I guess) is acceptable for Facebook, then it will probably be acceptable for me, too.<p>5) React interacts nicely with their Flow typechecker, which I think is, uh, the safest vector, right now, to foster the adoption of algebraic typing in the mainstream of programming. I won&#x27;t typecheck my JS before the summer, probably, but still, this is philosophically fun.
delluminatusover 10 years ago
I&#x27;ve made applications using both React and Angular. Qualitatively, Angular is way easier to get started, but React &quot;feels nicer&quot; (it&#x27;s hard to explain, but because you have to handle a lot of the eventing and message passing yourself, you feel like you understand your own app a lot better. Angular is a framework, with inversion of control -- React is just a library).<p>IMO, you should use Angular, unless you:<p>1. Need good performance with over 1000 data bindings<p>2. Are making a literal SPA (i.e. don&#x27;t really need URL routing or multiple controllers)<p>3. Plan to build a long-term rock-solid application (like a backbone for an enterprise)<p>4. Want to understand exactly what is happening in your app.
评论 #8962222 未加载
ptasci67over 10 years ago
+1 to &quot;As with everything it depends&quot;<p>Personally, when I switched to React, I never turned back. Angular gives you more out of the box but I personally hated that box. I really jive with the React way of doing things and mixins allow you to easily add more functionality like routing, etc.
smt88over 10 years ago
<a href="http://jlongster.com/Removing-User-Interface-Complexity,-or-Why-React-is-Awesome" rel="nofollow">http:&#x2F;&#x2F;jlongster.com&#x2F;Removing-User-Interface-Complexity,-or-...</a>
raoraoover 10 years ago
that&#x27;s dependent on the problem at hand. Are you building a site that has a lot of moving parts on the same page, that needs to communicate nuanced state changes across components? If so, react&#x2F;flux is a godsend, since the system will be easier to maintain and customize.<p>Is your site made up of many different views that don&#x27;t change much once loaded? Then angular would be a fine tool for the problem. You would likely move much faster initially, since Angular handles a lot of problems with data binding and routing for you.<p>And finally, are you sure you need either of these frameworks? If you want your front end to consume JSON but it isn&#x27;t particularly dynamic, something like backbone will probably be good enough. Hell, server-rendered templates do the job in a lot of cases. No reason to solve a problem that doesn&#x27;t exist.
tptacekover 10 years ago
React is much simpler.
gravedaveover 10 years ago
Don&#x27;t know about ReactJS, but I&#x27;d stay away from Angular, especially since Angular 2.0 will break compatibility anyway.<p>I&#x27;d probably go for Backbone, Underscore, Zepto and&#x2F;or Bootstrap.