5 ms·
I personally hate angular1 architecture(I did not tried the rest), some of my reasons are 1 instead of pure code you use markup like ng-repeat , ng-if , this c
by simion314 5y ago
I personally hate angular1 architecture(I did not tried the rest), some of my reasons are
1 instead of pure code you use markup like ng-repeat , ng-if , this causes weird bugs and weird errors and not clear scoping issue. I prefer the old react architecture(not sure if modern react is still sane) where instead of ng-repat item in items you could have pure JS code like items.foreach(renderItem(,,,)).
It is a personal opinion but I prefer to see my code to run when I debug rather that my markup getting "compiled" under the hood and not seeing the actual code.
2 I dislike the error mesages, the stack traces are useless
3 the performance is terrible, it is super easy as a SPA grows to get too much updates triggering , this might have been solved with new versions and maybe a more component oriented architecture but still the way data binding and update cycles works is pure performance insanity.
4 sometimes shit does not work, maybe you have a typo and you get no warning, maybe there is some scope conflict, maybe you forgot to add some attribute, maybe the data-binding fails and you need to always apply "that workaround" but I wasted a lot of time on problems like "why is this element not updating", at least the devs could add some extra checks and warn when something is not right, I manage to write some code and add this extra checks but is not that well tested.
This is personal opinion, angularjs is not targeted for developers like me, I worked with Qt, GTK, Windows Forms and WPF, I think i done a bit of MFC, Flex4, React , Swing and angular is the worst one for my personal taste. I thin Flex4, Qt and WPF are better architected and more powerfull, you can do simple and modareate things fast but you still have flexibility to do everything. With angular you can do Hello World fast, after that it is a pain, and a giant pain when you need to maintain a fea years old code base made by a newb angular dev team.
- jaywalk 5y agoAngular (Angular 2) is nothing like AngularJS (Angular 1). The biggest mistake they made with Angular 2 was the name.
- simion314 5y agoIf the architects of Anuglar >=2 are the same people then i do not have high hopes, they probably fixed some of the issues but for me personally the architecture is broken. Let me know if they brought some competent(for this task) developer for angular2 and I might have a bit of hope but I would never chose angular if I ever had a chance to start something new.
- filoeleven 5y agoIt was also their meanest trick. We used angular 1.x and when that was sunsetted, it took so much effort to get everyone to understand that v2 was a completely different framework, and that it might not even be able to do what we needed it to do. It couldn’t, and we went with React instead. We were able to replace the whole UI layer, and aside from some 3rd-party components we had to swap out (like data grids), no one could tell the difference.