Live data from Hacker News

Does Angular 2 live up to the hype?

cycligent.com

21–30 of 44 posts

Re: Does Angular 2 live up to the hype?

#21
post #13

A more useful question to answer would be should I use Angular or React?

Are you okay picking your state management paradigm, and additional tooling? Are you more functional or OO minded. Do you lean towards TypeScript/static typing? Do other people you are going to be working with have experience with either of the tools/platforms? For me, imho React + Redux + fetch api go a really long way to get you there, combined with material ui, or react-bootstrap with react-icons you're all but se…

To add to your point, I feel that React/Redux is easier to debug. Redux has the developer tools, which allow you to rewind state as well as hot module reloading, which means you can rewind state, and then replay it with your code changes. This means you don't need to log back in to your app, navigate to where you were previously at, and then recreate whatever extra state each time you try a fix.

The functional approach via Redux is what a lot of people look at, but I prefer to look at the developer tools and the state of debugging.

JSX is easier for me to debug since you can just drop breakpoints in your javascript and step through with the debugger. This encourages more vanilla javascript usage, which is easier to debug and reason about.

Re: Does Angular 2 live up to the hype?

#22
post #6

The author recommends grabbing jQuery where necessary and I'd have to disagree. Instead they could look into ngOnChanges in the component lifecycle or using a different ChangeDetectionStrategy on the component. But maybe jquery is the better option for their use case. We're using it for an internal app at walmartlabs and its been great coming from angular 1. Working with angular-cli today is very stable and fully fea…

I also found that JQuery statement strange. I'm not sure why you would use JQuery instead of Angular for thousands of rows as the author specified. Angular should update the DOM more efficiently than JQuery and the event handling should be far more clear. I believe the author stated that he ended up using direct DOM manipulation, but it seems like his example defeats the entire purpose of using a front end framework.

Re: Does Angular 2 live up to the hype?

#23
It sounds to me like it's a great framework, but "Angular 2" is a misnomer at this point. Maybe the "Angular" name will entice 1.x users to it, but it seems like the Angular team could have created "MasterBlaster 1.0, the successor to Angular" or something, still got some hype, and avoided a lot of grumpiness.

Re: Does Angular 2 live up to the hype?

#25
I've only briefly tried Angular 2 so I accept I may be wrong about this, but it feels like there's too much friction required to add a new component which discourages me from doing so. It feels like you have to create too many files and add too many lines here and there to connect everything up each time. Having reusable components is great but trying to make everything reusable when it probably won't be reusable (i.e. you have to specify all the dependencies) can slow you down. I'll still likely use it though given the improvements over Angular 1 and because of the use of TypeScript.

Re: Does Angular 2 live up to the hype?

#26
post #23

It sounds to me like it's a great framework, but "Angular 2" is a misnomer at this point. Maybe the "Angular" name will entice 1.x users to it, but it seems like the Angular team could have created "MasterBlaster 1.0, the successor to Angular" or something, still got some hype, and avoided a lot of grumpiness.

My vote was for "Angular Elizondo Mountain Dew Herbert Camacho" but the Angular team was already pretty committed to Angular 2 by then.

Re: Does Angular 2 live up to the hype?

#28
post #21

Earlier quoted context omitted.

Are you okay picking your state management paradigm, and additional tooling? Are you more functional or OO minded. Do you lean towards TypeScript/static typing? Do other people you are going to be working with have experience with either of the tools/platforms? For me, imho React + Redux + fetch api go a really long way to get you there, combined with material ui, or react-bootstrap with react-icons you're all but se…

To add to your point, I feel that React/Redux is easier to debug. Redux has the developer tools, which allow you to rewind state as well as hot module reloading, which means you can rewind state, and then replay it with your code changes. This means you don't need to log back in to your app, navigate to where you were previously at, and then recreate whatever extra state each time you try a fix. The functional approa…

You can use Redux with Angular 2, and it works quite well! The dev tools work the way you'd expect them to. Webpack hot module loading works well Angular 2 as well. I agree that JSX is easier to debug. The Augury[1] Chrome extension serves the same purpose for Angular 2 as the React Dev Tools extension does for React.

That's not to say that React isn't great too! I like it lot.

[1] https://augury.angular.io/

Re: Does Angular 2 live up to the hype?

#29
post #21

Earlier quoted context omitted.

Are you okay picking your state management paradigm, and additional tooling? Are you more functional or OO minded. Do you lean towards TypeScript/static typing? Do other people you are going to be working with have experience with either of the tools/platforms? For me, imho React + Redux + fetch api go a really long way to get you there, combined with material ui, or react-bootstrap with react-icons you're all but se…

To add to your point, I feel that React/Redux is easier to debug. Redux has the developer tools, which allow you to rewind state as well as hot module reloading, which means you can rewind state, and then replay it with your code changes. This means you don't need to log back in to your app, navigate to where you were previously at, and then recreate whatever extra state each time you try a fix. The functional approa…

Agreed, I also feel that React has the best console output in general for errors and warnings than any browser based UI system I've ever used... Absolutely fantastic, and the breakpoints are nice too. I do wish the webpack-hmr worked better with pure render components though, at least with sessionStorage backing my redux store I can refresh the browser without a lot of loss...

Re: Does Angular 2 live up to the hype?

#30

I've only briefly tried Angular 2 so I accept I may be wrong about this, but it feels like there's too much friction required to add a new component which discourages me from doing so. It feels like you have to create too many files and add too many lines here and there to connect everything up each time. Having reusable components is great but trying to make everything reusable when it probably won't be reusable (i.…

Are you using the angular cli generator?

It's pretty tedious creating components without it. Plus as you mentioned if you create a base component than the derived component's don't need the declare some dependencies again.

Post reply on HN