Live data from Hacker News

Angular 2 Survey Results

angularjs.blogspot.com

31–40 of 82 posts

Re: Angular 2 Survey Results

#31

Earlier quoted context omitted.

At a first glance the link you provided promotes double insanity: angular 1 mixed with angular 2 (because angular 1 was not complex enough when angular 2 decided to simplify it with new syntax and requiring typescript which seems to require node.js). Is there some documentation for angular 2 with plain javascript (no typescript) for people who want to keep it simpler ? Can you provide some links ? Thank you.

Each code sample here has an ES5 ("plain javascript") version that you can get to with the buttons on the top: https://angular.io/docs/js/latest/guide/setup.html

[deleted]

Re: Angular 2 Survey Results

#32

It's funny how so many development communities feel like they need to start over and create an entire new framework. Perl 6, PHP 6 (which was never released), the disaster that is Python 2/3 (many standard libraries were renamed breaking a ton of libraries, and now Angular. PHP, which is hated by many here because it isn't hip, at least allows you to run 4 code on the 5 interpreter with no issues. When Microsoft did…

PHP breaks things all the time (just check the migration guides for any release), but the difference is that they break only what they must, and deprecate things in a timely way so you can evolve your codebase instead of having to rewrite it. Other platforms tend to see a broken piece that needs replacement as a good opportunity to redesign everything else as well, even the stuff that worked fine, and don't put as high a value on easy migration paths.

Ofcourse, that's also one of the reasons PHP has so much ugliness still.

Re: Angular 2 Survey Results

#33
post #12
post #6

I was really hoping this was a survey to Angular 1.x developers asking how annoyed you are that Angular 2 completely changed everything. Angular 2 should have been a new framework, IMHO.

Seems like 2.0 is the worst of both worlds: little/no continuity from 1.0 and little/no benefits of starting from scratch.

Coming from a .Net world I love Angular2/TypeScript and disagree with your assessment.

Re: Angular 2 Survey Results

#34
post #10

Earlier quoted context omitted.

yes but the changes allowed the framework to be the fastest out of all of ones currently right now as well as making sure it's more future proof

Not an Angular user, but I'm quite interested- what about it would make Angular 2 faster than Ember or React?

All the benchmarks seem to indicate that Angular 2 is vastly faster than the other frameworks - the Angular team has achieved O(1) change detection, which large DOM node benchmarks are remarkably consistent with in terms of Angular 2's performance. For large numbers of repeated elements, it turns out that Angular 2's performance is worlds away from even libraries like React. For more normal situations of smaller # of DOM nodes, Angular 2 still manages to outperform by around 3-5 times as fast - all the benchmarks I have saw was pre-web worker support though, so it may be even better with that enabled.

I don't remember Ember's performance, but React's seems to slow down significantly in jumps at certain marks, similar to Angular 1, which seems to suggest they have some at least one place where optimization could be made. It should be noted though that Angular 2 builds on top of many rock solid principles that React introduced, and has ruthlessly optimized upon that with continuous benchmarking and careful planning.

Re: Angular 2 Survey Results

#35

It's funny how so many development communities feel like they need to start over and create an entire new framework. Perl 6, PHP 6 (which was never released), the disaster that is Python 2/3 (many standard libraries were renamed breaking a ton of libraries, and now Angular. PHP, which is hated by many here because it isn't hip, at least allows you to run 4 code on the 5 interpreter with no issues. When Microsoft did…

> PHP [...] at least allows you to run 4 code on the 5 interpreter with no issues

Speaking as someone who at one time made a living porting PHP4 code to PHP5, that's not even the same ballpark as reality. No non-trivial code base made that transition without effort. But it is of course possible to write code that runs on both versions, which may be the source of the confusion.

Guess why all cheap web hosting companies only offer ancient versions of PHP? "I downloaded $crap from teh Internet and it doesn't work" is nobody's favourite idea of customer support.

If I were to think of a scripting language (to exclude C) that has kept backwards compatibility well, I think Perl 5 has done a decent job. Fifteen year old code bases is at least within the realm of possibility to get up and running, and the language has evolved quite a bit in the meantime.

Re: Angular 2 Survey Results

#36
post #34

Earlier quoted context omitted.

Not an Angular user, but I'm quite interested- what about it would make Angular 2 faster than Ember or React?

All the benchmarks seem to indicate that Angular 2 is vastly faster than the other frameworks - the Angular team has achieved O(1) change detection, which large DOM node benchmarks are remarkably consistent with in terms of Angular 2's performance. For large numbers of repeated elements, it turns out that Angular 2's performance is worlds away from even libraries like React. For more normal situations of smaller # of…

What benchmarks? You say all the benchmarks but provide no links and I know for a matter of fact that your statement is simply not true. Also, be wary of benchmarks, they tend to optimize one framework while leaving the other ones not optimized. Also to note, I've used React for very complicated things, even having to optimize under the 50mb limit in one tab and the performance did not slow down as you claim. I've been using React on a production app > 1 year. I used Angular 1.x before that.

And the only way I see every change detection being O(1) is using something like Immutable js or serializing the "state" and comparing strings.

Just by this blog post alone, it seems the Angular community is quite split on what they want. Wouldn't it make sense to just maintain Angular 1.x and start on a new framework, which would basically be Angular's version of React and Ember, with a new name. Performance difference will be negligible.

Re: Angular 2 Survey Results

#37
It's a shame that jQuery was included within "What frameworks other than Angular 1.x do you use regularly today? (choose multiple)". Why not throw lodash/underscore in too?

Re: Angular 2 Survey Results

#38
post #6

I was really hoping this was a survey to Angular 1.x developers asking how annoyed you are that Angular 2 completely changed everything. Angular 2 should have been a new framework, IMHO.

I'll defend ebbv

I have no intention of migrating V1 apps to V2 - it would be a waste of time and money.

And until I see real world examples of V2 performance or adoption, I'll continue to use V1 due to the incredible amount of 3rd party code that works with it - which I'm assuming, is alllll gonna need to be re-written to work with V2.

What if PHP 7 broke all backwards compatibility with PHP 5 unless hacks were used. The world would be un an uproar (if not all the Wordpress devs out there)

I was late to adopt V1 - I'll be late to adopt V2.

Post reply on HN