Live data from Hacker News

Angular 1 and Angular 2 integration: the path to seamless upgrade

angularjs.blogspot.com

81–90 of 102 posts

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#81
post #45

Earlier quoted context omitted.

ExtJS went through some rough upgrade cycles as well. From what I remember, the 2->3 upgrade path covered a small subset of codebases.

Ember OTH has the smoothest upgrade path known to man.

Not that smooth if you saw the comments on HN last week - teams lost months of productivity keeping up with the rewrites in Ember, even with no immediate breaking changes.

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#82
post #4

Earlier quoted context omitted.

Remember separation of concerns ? Fuck that, let's just mash code and markup together.

What concerns do you think you're separating exactly, when you're dealing with presentation-tier markup and code that combine intimately to a single component?

I think a lot of the people worrying about this separation of concerns, and feel it's such an obvious problem that they don't even need to expand on it at all, are probably people who had to deal with hideous PHP (in the unenlightened days before Laravel, let's say) where views, business logic, and everything else get snarled up together in a horrible mess between some opening and closing PHP tags.

I had similar worries when I first saw JSX. Having used it quite extensively, though, it does feel like it's a sensible idea now, from a development perspective at least. That said, it does increasingly feel like the days where certain people could just write HTML and CSS, and other people could handle the trickier JavaScript, are long gone (especially with things like Radium for React).

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#83
post #62
post #61

Commets here made me think about whether it's forward-looking using angular 1.0 for next projects: i guess i'll go with React with my short-coming project then... I don't know what to do

In my limited experience React is way easier to comprehend than Angular.

I've had the opposite experience, with a code base responsible for millions in revenue each month.

Took less than a day to understand angular from nothing -- taking more than a day just to evaluate flux implementations with react.

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#85
post #7

I know that hating angular is popular these days, but i'm still using it, and it serves me well. Looking forward to Angular 2!

Agreed. Once you are fully up to speed with it (and not at one of the local optima as brilliantly shown on the famous Angular learning curve diagram), it's a pleasure to work with.

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#86
post #57

Every time I use Angular it feels like it's doing things the right way and it's becoming the Rails or Django of the JavaScript world. Wish I had fought to use AngularJs directives and $resource instead of messing about with ReactJS and jQuery ajax calls. With this migration plan it seems silly not to keep hacking with AngularJS 1.x

Yep, even though directive implementation is verbose in 1.x, once you get really comfortable building them it's a pleasure to use them.

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#87
post #69
post #4

Earlier quoted context omitted.

Remember separation of concerns ? Fuck that, let's just mash code and markup together.

The fun part is that Angular (1, anyway) has pretend-separation. Sure, there's truth in DOM, but not really. Littering your custom directives all over the place may feel like progressive enhancement but if you're using an app framework like Angular your JS is likely already complex enough that you can't meaningfully consider it a mere "enhancement" -- we're talking core functionality, not fairy dust. People react (he…

How exactly were you "burned by Angular"? Many of us here are using it very successfully. And no, you don't need to "serialize your data into some kind of string format" (at least in the sense that you would never flatten JS objects into serialized strings in order to work with them). Scopes definitely take some getting used to, but they are not magical.

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#88
post #22
post #19

I see 2-way data-binding is mentioned here and will still be supported (good). Curious why has 2-way now become 'uncool' recently, e.g. React? 2-way is what got me excited about client side JS due to the code reduction in an average app. Is just that Angular 1's implementation was non-performant? (lots of other frameworks use it as well, e.g. Knockout, RactiveJS, etc).

Two way data binding is awesome and neat and shiny and chrome. It's also pretty slow; a lot of pragmatic angular work involves keeping the number of watchers firing during digest cycles minimized. If you have a lot of data that's all two-way-bound by default, but aren't making any use of the bindings, that's a lot of wasted cycles. I mean, my app has a lot of data in it, stuff like {{username}} which rarely ever chan…

This seems to be the new standard in JS framework development. Ember, Angular and React have all switched to making "data down, actions up" be their M.O., while still supporting 2-way data binding if you want or need it.

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#89
post #57

Every time I use Angular it feels like it's doing things the right way and it's becoming the Rails or Django of the JavaScript world. Wish I had fought to use AngularJs directives and $resource instead of messing about with ReactJS and jQuery ajax calls. With this migration plan it seems silly not to keep hacking with AngularJS 1.x

Yep, even though directive implementation is verbose in 1.x, once you get really comfortable building them it's a pleasure to use them.

I also share this sentiment. I also added a directive class that helps dramatically with code organization/comprehension. For example, listeners should be implemented here, view-model things should be setup here, etc...

Re: Angular 1 and Angular 2 integration: the path to seamless upgrade

#90
post #81
post #45

Earlier quoted context omitted.

Ember OTH has the smoothest upgrade path known to man.

Not that smooth if you saw the comments on HN last week - teams lost months of productivity keeping up with the rewrites in Ember, even with no immediate breaking changes.

Can I have a link to that please?
Post reply on HN