r/angularjs • • Nov 04 '16

The future for Angular 1.x, what next?

https://toddmotto.com/future-of-angular-1-x
53 Upvotes

27 comments sorted by

14

u/[deleted] Nov 04 '16

once the traffic levels of the documentation for Angular 2 overtakes Angular 1.x, support will decline

Time to warm up the bots.

7

u/toddmotto Nov 04 '16

setInterval(refreshPage, 1000);

1

u/[deleted] Nov 04 '16

That won't get too far. I may have to include a ping to the angular 1.x docs on a high-traffic site I work on.

I have no intention of giving up on Angular 1.x any time soon. Angular2 lost me when they made Typescript practically a requirement.

3

u/[deleted] Nov 04 '16

What don't you like about TypeScript?

10

u/[deleted] Nov 04 '16 edited Nov 04 '16

Typescript doesn't really solve anything for me. I practically never encounter and bugs caused by the wrong type, and nothing that Typescript would save me from anyway. Most often type errors I see are coming from the back-end when the back-end sends a number as a string or something unexpected, which Typescript has no hope of ever catching. The most common bugs I find in javascript are flaws in logic like something=!somethingelse when it should be something!=somethingelse, and Typescript won't prevent that. It really won't make bad coders any better than they are. It does add significant overhead with lots of boilerplate and transpiling (which I hate), and there are many libraries that don't have type definitions, and so then the need to add type definitions to 3rd party libraries becomes a thing - not something I really want to pursue. Lastly, there is nothing wrong with Javascript and weak typing, it's a thing because some people find it useful and to try to shoe-horn a fake type system on top of that just seems wrong. I like weak types, they don't cause problems for me, so I don't really see a need for Typescript.

2

u/[deleted] Nov 05 '16

Very well put, thanks!

5

u/Kryxx Nov 04 '16

The core concept of types is unnecessary imo. As many have suggested: TypeScript isn't for the front end developers, but it's for backend developers who are looking to do front end as it allows them to feel comfortable.

TypeScript is one of the reasons I'm moving to a React company. I don't care to work with TypeScript and that is the direction Angular 2 is going.

3

u/[deleted] Nov 04 '16

React doesn't mean you won't have to use Typescript down the line. I quit a company because the CTO wanted to start using Typescript on our Angular 1.x codebase, and throw in some React, and maybe try out Angular 2 as well - mixing all 3 frameworks on the same site.

Why not stay with Angular 1.x? There are plenty of companies that will stay with it regardless of the hype around Angular 2.

4

u/mrv1234 Nov 04 '16

Typescript has compiler-level support for JSX https://www.typescriptlang.org/docs/handbook/jsx.html and there is even a --reactNamespace compiler flag, so it looks like React its one of their target ecosystems

-4

u/Kryxx Nov 04 '16

Angular 1.x is a dead end. Check the performance for example.

React vs Angular isn't the main reason I'm switching, but not having to use typescript is a benefit

5

u/[deleted] Nov 04 '16

Angular 1.x is a dead end the same way Python 2 is a dead end, and ES5 is a dead end. It will continue on for many, many years to come. Tech doesn't simply disappear just because something newer shows up. Angular 2 is still too new for many companies to adopt. It's unproven as far as many are concerned, where Angular 1.x has a very long history and it's stable and a proven technology.

The performance issues of Angular 1 aren't a problem for most sites built with it, and there are plenty of ways to work around that.

I think you're a little premature in moving to React from Angular 1.x just because Angular 2 is out and you don't like it.

-2

u/Kryxx Nov 04 '16

I didn't say I didn't like Angular 2. I said I didn't like typescript. Those are different.

And old tech is old tech. It may be around, but I have no interest in working with it.

6

u/[deleted] Nov 04 '16 edited Nov 04 '16

And old tech is old tech. It may be around, but I have no interest in working with it.

You're part of the javascript fatigue problem. Just because it's new doesn't mean it's better. Just because it's old doesn't mean it doesn't work anymore.

→ More replies (0)

3

u/meneedmorecoffee Nov 04 '16

Here Todd if you're ever in Glasgow I'll buy you a pint, you're always dishing out decent articles/tutorials.

2

u/toddmotto Nov 05 '16

Thanks my friend! Me need more coffee too :D! if you're ever down London way feel free to send me a tweet :) @toddmotto

7

u/jillesme Nov 04 '16

This guy just keeps writing great articles..

5

u/Narcicyst Nov 04 '16

He's a good guy. He says good things. He has a great brain.

15

u/toddmotto Nov 04 '16

The cheque's in the mail for all of you hahaha. Appreciate the kind words.

1

u/ApocalypseDenied Nov 04 '16

Username does not check out!

1

u/toddmotto Nov 05 '16

Parody account!

1

u/greg5ki Nov 06 '16

Yup one more vote for the toddmeister. Very thoughtful and well written articles.

I love TypeScript by the way. Even though it used to give me the s*its. Weak-typing is worse. It's just like flying by the seat of your pants. It might be good for some but not me.

I inherited a few Typescriptless NodeJS apps in my new job. It's just horrible. Right-click, find references....yea good luck with that. haha

1

u/toddmotto Nov 07 '16

Heh, cheers Greg5ski ;) appreciate it. Agree with you on the TypeScript front, loving it.

1

u/deanf Nov 04 '16

I have recently made the switch from 1 javascript to 2 typescript and I'm pretty happy. Sublime Text + the Typescript package works really well with inline validation. You don't have to be so strict with the typing either, it's not actually mandatory. I just see it as another ES6 transpiler with a couple more features (Angular annotations for example)