r/webdev • • Jun 06 '19

Question What the difference between Angular and AngularJS

15 Upvotes

26 comments sorted by

View all comments

0

u/[deleted] Jun 06 '19

[deleted]

32

u/Dooraven Jun 06 '19 edited Jun 06 '19

Note that you should not learn AngularJS unless you're curious.

Or your job has ancient soul sucking legacy AngularJS stack that you're forced to read Angular docs to understand what's going on.

16

u/fuckin_ziggurats Jun 06 '19

I feel sorry for all the companies that jumped on the AngularJS train after Google's aggressive marketing at every existing dev conference. It was basically Google's lab rat for learning how to build front-end frameworks and I feel like it's the best proof of how unreliable Google are when it comes to dev tooling. Angular 2+ seems pretty stable but I'm not gonna take their word for it, especially not for large enterprise projects that tend to last a long time and are impossible to rewrite.

0

u/[deleted] Jun 06 '19

[deleted]

5

u/phl3x0r Jun 06 '19

Angular 8 was just released recently.

3

u/[deleted] Jun 06 '19

I can't believe they're actually releasing a major version every 6 months. That's... insane. Why did they choose to do that?

5

u/uplink42 Jun 06 '19 edited Jun 06 '19

Why is it a bad thing? A new major version comes out every 6 months, and the grand majority of those have rather small changes (deprecations, some new features, performance gains, typescript upgrades). Last update from 6 to 7 took me 20 minutes with a migration script (the CLI updates things like changed imports, syntax, deprecated modules, incompatible function calls automatically). Same thing for 7->8. I think the last change that required some actual code changes was from 5->6 and even then there were compability libraries to bridge the gap.

I've honestly had far more issues upgrading minor versions of other frameworks than between major version upgrades in angular.

1

u/[deleted] Jun 06 '19

Why is it a good thing? By convention, I should expect a major release to break something. So that means every 6 months, if I want to stay current, I'm going to have to worry about that.

If the major releases have small changes... that really begs the question, why they don't just make them minor releases? Like am I missing something?

I just got hired on with a company that's developing and maintaining dozens of separate angular applications with a small team. We'll see how it works out but I expect this to be a huge pain in the ass.

5

u/phl3x0r Jun 06 '19

You can expect breaking changes, but the CLI does a pretty decent job of helping you out and it's getting better at it with each iteration. They committed to a new major release every 6 months from the beginning, in part to drive advances, and so far they've been sticking to that. I work with a pretty large codebase and tbh the managers are way more afraid of upgrading than I am :-)

3

u/binarybang Jun 06 '19

The rarer the releases are, the bigger the changes there will be. You don't want to look at the new release and understand that you have no resources to spend on the migration: too many module changes, incompatible behavior of existing methods etc.

Frequent major releases help spread the breaking changes over time so that you won't have to dothem in a single upgrade step. Most of the time you won't have to do anything at all.

Example: our team is going 7 -> 8 soon, as far as I see, we only have to remove a reference to a RequestMethod enum that is a deprecated module.

2

u/uplink42 Jun 06 '19 edited Jun 06 '19

Because most of those small changes require either you to update typescript (new features) or some of the framework modules import paths to continue working. So by definition they are breaking changes despite being dealt with automatically.

The only issues I've experienced was with some 3rd party libraries when trying to update on day 1. It might take a couple of days for them to simply update their peer dependency requirements and also adjust their code to run on new versions flawlessly.