Live data from Hacker News

Angular 5.0.0

blog.angular.io

131–140 of 189 posts

Re: Angular 5.0.0

#131
post #101

Earlier quoted context omitted.

When Angular 1 was left for dead I went to Knockout. I think it is very similar and also very simple to use.

KO is long dead, but I kinda liked it. After ko and angular 1 I felt right at home with Vue.

It's dead because no one uses it anymore? It had a stable release in March.

Re: Angular 5.0.0

#132
post #92

Earlier quoted context omitted.

That's surprising to me! My main complaints of Angular 2+ are around testing, but I've had nothing but love for React testing (enzyme, chai, karma) EDIT: whoops, mistyped. We don't use karma anymore in our React testing stack. It's mocha now.

Chai and karma aren't specific to react. I remember using them with angular 1.x back in the day.

Aye, I didn't mean to imply that, I was listing my React testing stack :)

Hah, looking now, I realize I mistyped. We use mocha, not karma. Was conflating things

Re: Angular 5.0.0

#133
post #8
post #2

From my colleagues, both front-end developers and full-stack developers, I've heard nothing but criticism of Angular >2.0.0. I would like to hear the other side. If you use fresh Angular, why?

When I used Angular 1, the two way binding was a breathe of fresh air. It was akin to when jQuery first hit the scene and you all of a sudden had selectors. There was a learning curve regarding the "Angular way" (think: $scope, controller, directive), but altogether I was happy with the result and the ideology. I tried Angular 2 and it was a mess. It feels as though the ideology is fighting you every step of the way,…

Two-way binding is amazing for smaller sites, but it becomes a nightmare for an enterprise-level app. Digests, and having to wait for the next event cycle is an incredible headache, especially when you have to write tests and modify values outside of angular control.

Add to that the frequent execution and performance issues with watches and we deeply regret having to deal with it now.

Add to that having to learn the painful guts around digest-related executions. Watches fire on init so you have to ignore those first calls. Tests are nasty because timeouts have to be flushed manually, and $q promises won't resolve until you call $apply, etc. It quickly became "WTF is going wrong internally".

Angular 2 is a lot better, but at this stage I think so many former AngularJS/v1 developers went the react/vue route and don't see any reason to return.

Re: Angular 5.0.0

#134
post #97

Earlier quoted context omitted.

React and react-router are not the same thing at all. They're developed by different teams at different organisations. It's not fair to compare the two.

Of course it's fair. When comparing React with Angular it's only fair to compare the react ecosystem with angular. Nobody ever built an SPA in production with just React.

OTOH I'd be amazed if no-one's built an SPA in production with React and nothing else from the React ecosystem. What would be so hard about that? You can totally use it as just a view layer, if that's what you want to do. Granted, you probably use other non-React libraries, but that's not what we're talking about.

Re: Angular 5.0.0

#135
Thank you for new release. For me there is still nothing better than Angular - I hate html validation, but I hate JSX even more. I hate verbosity of declarations (app.module, app.component, imports...), but I hate lack of official router in React even more. I don’t like RxJS and I hate that you are forcing me to use it, that you ignore even simple feature request about GET-caching, but there is still no good replacement for Angular. I didn’t mention hell with tests just to don’t be too sad on this happy moment of new release with a lot of breaking changes. Thank you.

Re: Angular 5.0.0

#136

Earlier quoted context omitted.

That's an improvement, but what about syntax coloring, intellisense suggestions and instant squiggly-lines when you make a typo? These are all important for productivity. You get all this when you use .tsx templates (which by the way, are not limited to React, see https://github.com/wisercoder/uibuilder )

As others have mentioned, this is all possible with Angular >=4, both in WebStorm and VSCode. The main issue is with performance and debugging. Using Angular's AoT compilation is still extremely slow and your squiggly lines take several seconds to show up after you modify a template in your editor. And no stepping through templates either when trying to debug why something isn't rendering properly. But, imho, the big…

can i get an amen?!

https://github.com/angular/angular/issues/17976.

ngmodule makes no sense. why can't the components, providers etc get automatically discovered. ngmodules should not be necessary.

Re: Angular 5.0.0

#137
post #32

Earlier quoted context omitted.

Angular 2 will not help your team deliver valuable web experiences to customers any more quickly or reliably than Angular 1. Probably almost certainly the opposite. I'd argue most teams, if they're willing to go all-in on an SPA framework (which for most apps is a waste of time and money imo) would be better off with React + TSX. Edit: Vue is probably closer to the "Angular way" with databinding, but component to com…

I disagree. In my experience, developing a REST API and SPA with Angular2+ has been the quickest development cycle I've experienced. Not only is it very pleasant to work in, but the end product for the user is high quality. Vue is great, but it's lack of proper component support makes it a bit annoying to work with. I have just migrated an app that was on Angular 2 RC4 to Angular 5 with little to no migrational woes.…

> Vue is great, but it's lack of proper component support makes it a bit annoying to work with.

Wait...what are you talking about?

Re: Angular 5.0.0

#138
post #14

This rapid pace of major releases is a little scary. We're stuck running Angular 1.x because there's no reasonable upgrade path for us. We're a .NET shop and really like Angular, but after the 2.x cluster fuck, we're now thinking about going with something else entirely.

Agreed.

I work in a large health care organization and they decided a two years ago to jump on the Angular bandwagon. Well, after some serious growing pains they were able to get it to work. One of the major issues was the "executives" just paid a hefty fee to bring in AEM (Adobe Experience Manager) and anything the teams wanted to do had to be able to integrate with AEM. I won't bore with the details, but it was painful.

After a long journey to get those issues solved, the Angular team came out and said they were going in a totally different direction for Angular 2. One of my responsibilities was to write up a migration path to 1.5, and then how to eventually make a full migration to 2.

Yeah, after I told upper management about the rapid release cycle, they just about choked. No way an org this big can move that fast. At this point, any future projects won't have it and we're in legacy support already for three other projects who did use it.

In short, Angular in all forms is dead here, which is sad.

Re: Angular 5.0.0

#139
post #20
post #14

This rapid pace of major releases is a little scary. We're stuck running Angular 1.x because there's no reasonable upgrade path for us. We're a .NET shop and really like Angular, but after the 2.x cluster fuck, we're now thinking about going with something else entirely.

Could be worth your while to look into Cycle.js It's written in TypeScript and, like Ng2, also heavily based on observables

Second this. It takes a little getting used to but CycleJS is worth a definite look.

Re: Angular 5.0.0

#140
Several years ago we chose AngularJS/v1 for an enterprise-level app. Once Angular/v2 was announced it was still more of an experiment, but things have changed far faster than we anticipated.

Projects like ui-grid are dying and ui-bootstrap is dead and they're moving to Angular support only. We're suddenly using tech that's being abandoned a lot sooner than we foresaw.

I have my issues with Angular v2+, though overall it's way better than v1, but I truly hope the same doesn't happen to those making an investment in this new platform.

Post reply on HN