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.

Why you should not use AngularJs

114 pointsby caisahover 10 years ago

19 comments

hippichover 10 years ago
I am working on a large app based on angular (not my decision - I voted against it :)), and felt many pain points already, from poor design overall, to crappy extensions most of the currents apps are using.<p>It Kinda reminds me whole Wordpress thing. Really subpar codebase - but at the same time very easy to make simple things, and as a result - a lot of popularity. And this comes not as surprise to see so many blog posts comparing Angular to jQuery...<p>But perhaps this bothers me the most - <a href="https://www.youtube.com/watch?v=X0VsStcCCM8#t=745" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=X0VsStcCCM8#t=745</a><p>Guy behind framework openly admits he did not really pay attention to what other frameworks were doing (and Ember used to be Sproutcore and went through similar observe-loop pains in the past.) He just transferred his Java-server-side-MVC experience ($scope&#x2F;$context - these are very distinct server-side MVC concepts) as is to the browser, which, as turned out, not quite well suited for long living in-browser apps..<p>And then whole dependency&#x2F;packaging mess. There were already solution and tooling in place for AMD - but he decided to reinvent it, and as a result integrating any serious building process is a pain (i am not talking about 1 page apps here, i am talking about apps with 10Mb of JS code bases.)<p>While this all workable, and this is what I do at my day job, this should not be necessary. I call it &quot;bullshit job&quot; just like many &quot;create report&quot; type of jobs - where no real value is created.<p>If you know 100% that your app will never grow outside small prototype - go for it, otherwise either have plan in place to redo your app in sane framework, or do your app in sane framework from the start.
评论 #8831022 未加载
评论 #8830919 未加载
southpawgirlover 10 years ago
After ~1 yr of experience with Angular, I have to say I fully agree. Debugging is a pain, for a start, and so is delving into the source code. Plus, it&#x27;s incredibly complex and opinionated and still it leaves it really easy to slip into really poor practices and untestable code (observe the complexity and verbosity of this best practice guide: <a href="https://github.com/mgechev/angularjs-style-guide" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mgechev&#x2F;angularjs-style-guide</a>). The real deal breaker is, however, performance in complex pages.<p>I much prefer to write my own controllers and models and use Reactjs for the views.
Bahamutover 10 years ago
To be honest, this article is pretty poor, and even demonstrates the lack of understanding of Angular the author has.<p>The databinding capabilities is said to be at 8000+ watchers now, although not all watchers are equal. A lot of performance improvements have been made since 2-3 years ago when that post was made about the watchers, which is where that oft poorly quoted 2000 watcher number originates from.<p>The two way databinding complaints miss the mark - the point of them in directives was to mimic eencapsulation and what is now being known as the we component spec. Web Components are essentially what Angular directives were meant to be in absence of an official spec for browsers to implement. The point of two way databinding in inputs also are for encapsulating logic for each component.<p>The comments about ng-cloak and ng-bind were also flat out incorrect.<p>I think most of all, the author doesn&#x27;t understand context - Angular was conceived during a different time for frontend, and at a different time with browser support. Five years is a long time to last in the frontend world currently, and that it will likely last at least 3 years more is surprising for a framework that has changed frontend development for the better overall.<p>Angular is obviously not perfect, and the core team members are quick to point out flaws in approach, or solutions that were good at the time but don&#x27;t make sense going forward due to changes in the browser environment or other technologies solving problems that Angular had to solve, such as with Object.observe, ES6 modules, and ES6 promises.<p>I have built &amp; architected many Angular apps over the past two years, some being very complex due to the problem space. I have found Angular to be perfectly suited to the task, and snappy to boot. I have seen very few perf problems where I could not fix them with a little work - the only one that was too difficult was dealing with editable tables with lots of data in older browsers (IE8 - 10), and I believe I could have tackled it, but I was playing more of an advisor role to another developer, and these sort of problems usually require the engineer working on the problem to understand the nuances of the code itself.
评论 #8831265 未加载
评论 #8831199 未加载
nsamuellover 10 years ago
While I&#x27;d be the first to agree that Angular does a bunch of things I think are a bit crazy, articles like this don&#x27;t really move the needle for me. The author doesn&#x27;t like the design of Angular and feels it isn&#x27;t efficient enough. OK, that&#x27;s OK! However, there&#x27;s not some massive conspiracy here - go ahead, use React&#x2F;Ember. In my own experience, Angular is performant enough for most web applications, and the convenience the framework offers makes up for a lot of the crazy, weird things it does to achieve that API.<p>But to each his own.
评论 #8830893 未加载
评论 #8893094 未加载
exrationeover 10 years ago
Takes all sorts. I put in some time at an office where the team struggled immensely with Ember but found Angular much easier to pick up and produce results with.<p>The scaling thing is just one of the hurdles you have to manage in this framework. Every system has them. Once you learn where the limits are the tools exist to manage it:<p><a href="https://www.exratione.com/2013/12/considering-speed-and-slowness-in-angularjs/" rel="nofollow">https:&#x2F;&#x2F;www.exratione.com&#x2F;2013&#x2F;12&#x2F;considering-speed-and-slow...</a><p>Like all frameworks, Angular isn&#x27;t suited to every task. If you are rendering massive tables, to pick the obvious example, then you probably shouldn&#x27;t be using any of the modern binding-based frameworks for that part of your application.
afarrellover 10 years ago
&gt; There is a fundamental rule in programming, it relates to absolutely any technology or language, this rule says that explicit is always better that implicit.<p>Is this a fundamental rule? I thought it was something highly valued by python culture but not by, say, ruby on rails.
评论 #8892993 未加载
评论 #8834202 未加载
评论 #8831060 未加载
评论 #8831297 未加载
santorivover 10 years ago
I don&#x27;t know if I agree with everything that this post says, but I do agree with the bit about two way data-binding being a problem. Two way data-binding definitely gives a &quot;Wow that was easy&quot; impression in a tutorial app or something not too complex, but once you get into the realm of a seriously complex app, it becomes an anti-pattern. You <i>need</i> to know which direction the data is flowing and in many situations there can <i>not</i> be two sources of truth that are always in sync with each other. I&#x27;m working with Ember and I&#x27;m really glad that they are moving away from using two way data binding by default.
crazychromeover 10 years ago
never tried it. AngularJS gave me a strong feeling of j2ee, bold, tons of reinvetions of old concepts. most of all, the authors are from google which never shipped a high quality Js&#x2F;browser based product. except the original gmail.<p>the only problem i have with this article is: i wrote a hatre comment on angularjs about 8 months ago and got downvoted heavily, but this one just keeps earning points!
bahmutovover 10 years ago
Interesting post, not sure I agree that the points raised mean AngularJs is a bad choice. Consider first objection - two way binding. Not only there are user-space solutions (bindonce), but now there is standard one-way binding in ng v1.3.<p>The Angular does nice job allowing simple interactive apps to be written in 30 minutes by anyone familiar with HTML and JavaScript. At the same time, if the app performs what is needed by the client, the app can be profiles, and each bottleneck can be optimized in a couple of steps.<p>For example, we went through this process and described the steps we used in <a href="http://bahmutov.calepin.co/improving-angular-web-app-performance-example.html" rel="nofollow">http:&#x2F;&#x2F;bahmutov.calepin.co&#x2F;improving-angular-web-app-perform...</a>
CSDudeover 10 years ago
I am not a good front end developer, however I think something like Angular is very useful to a frontend noob like me, I remember my old Jquery days, it is much easier to write modular code in Angular. You just have a template, and its controller. Easy! (For not very complicated things ofc) It might be better in other frameworks, I agree the docs are somewhat confusing, I still confuse provider-service-factory however as I said, it simplifies most of my development, and my medium sized web app runs very smoothly with Angular
评论 #8831530 未加载
andrea_sover 10 years ago
In my experience, it&#x27;s very easy to shoot yourself in the foot with Angular, performance-wise. But this is most often due to poor understanding of how the underlying update model works (people abusing deep watches would be a prime example).<p>Of course, the generally poor documentation does not help newcomers...
snarfyover 10 years ago
I&#x27;ll take a good library over a framework any day. Angular is a framework.
scottuover 10 years ago
There sure are a lot &#x27;Angular is Bad because...&#x27; articles out right now. Is it mainly because of the rewrite?<p>I&#x27;ve begun using Angular for personal projects. At work we use CANjs. I like CANjs but I have to say it feels easier to become productive on AngularJS. For me productivity is most important.<p>Regarding framework vs library. I heard more than one speaker at Fluent last year say that Angular was a library and not a framework like Ember. For me Angular seems pretty light weight compared to what else is out there.<p>Maybe in a few months I&#x27;ll feel different. For now I don&#x27;t hate on Angular.
coldcodeover 10 years ago
While I have no direct experience with Angular (I used to do javascript but now iOS) the folks in the office using Angular seem testy all the time.
SideburnsOfDoomover 10 years ago
In the section on minification;<p>&gt; When you minify your code, it stops working, since variables are injected by name. ... You have to use this syntax ...<p>We didn&#x27;t have that problem. Or rather we did until we reaised that the minification tooling can convert it automatically. The author does not know that his problem is not a problem any more as it has already been solved.
评论 #8831024 未加载
sergiotapiaover 10 years ago
That&#x27;s all fine but literally the #1 reason you should not use Angular is how the angular team tossed everything for version 2.<p>How can you trust such a tool? Do you want to rewrite your applications when version 3 comes out? Whos to say thy want do the same thing come v3
whoisthemachineover 10 years ago
I agree with your points, but I can say that I do not have the same hatred towards the framework as you do. It sounds like I should feel fortunate to have left that project after only a few months of working with Angular.
andrew_wc_brownover 10 years ago
I am building larges scale web-apps with AngularJS and I have no issues with debugging or performance that I need to move to another framework. Once you know the paint points of any framework you work around them.
GUNHED_158over 10 years ago
Couldn&#x27;t find any specific reason in this article to NOT use AngularJS!<p>One can always talk about any framework like this.<p>Good reasons to NOT use a framework might be: Lack of hope in future improvements, Inability to deliver the necessities, etc.<p>AngularJS delivers and there is a lot of hope around it and that&#x27;s exactly the reason people use ReactJS too.<p>AngularJS is a very powerful framework and implements many of the common patterns in rich web applications. It has a learning curve which is normal, and poor documentation which is being improved day by day.<p>Adopting AngularJS will result in less coding in the near future which in turn will result in less bugs and support. Therefore making it worth the learning curve.