Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll back to ES6+. Make TypeScript optional! #28793

Closed
devapp24 opened this issue Feb 18, 2019 · 23 comments
Closed

Roll back to ES6+. Make TypeScript optional! #28793

devapp24 opened this issue Feb 18, 2019 · 23 comments

Comments

@devapp24
Copy link

devapp24 commented Feb 18, 2019

馃殌 feature request

Relevant Package

Angular core

Description

Why are all Angular developers forced to use TypeScript?

TypeScript is making Angular much less popular and profitable. Not many business owners want to use TypeScript in their projects. For that reason, AngularJS 1.x is still more popular than Angular 2+ w/ Typescript. The majority of companies, I say over 90%, will still choose ES6+ over typescript.

Describe the solution you'd like

We need ES6+ option in Angular. Please let developers choose between ES6+ and Typescript when starting an Angular project. This is a very urgent update we need in Angular 8. Even if you guys create Angular 10, without ES6+ support, Angular still won't become more popular than AngularJS 1.x. That's completely abnormal. Current job market for Angular 2+ is horrible. It doesn't seem to be profitable at all.

Describe alternatives you've considered

I've been developing with React. It's been more stable experience because it's based on JS and more business owners want React now. However, I would still like to see Angular with ES6+ support. In my opinion, TypeScript is destroying Angular.
Look, now we have Angular 7. But there are still more companies which prefer to use AngularJS 1.x.
This is not very funny. Pushing typescript to Angular was apparently corporation's choice, not community's.

TypeScript is an advanced language but it's not endorsed by the majority of businesses out there. I don't understand why Google want all Angular developers to use typescript?
Please admit Angular with TypeScript is a big failure.. it will never beat AngularJS 1.x and React. Honestly, I feel the whole Angular community is isolated due to TypeScript. Why do we need this when ES6+ can solve any problem and there are more job positions for it?

I'm sure the developer community will welcome ES6+ based Angular 8.
This typescript nonsense should stop here. We need normal/compatible Angular back to community.

@devapp24 devapp24 changed the title Please add ES6 support. Make TypeScript optional. Please add ES6+ support. Make TypeScript optional! Feb 18, 2019
@devapp24 devapp24 changed the title Please add ES6+ support. Make TypeScript optional! Roll back to ES6+. Make TypeScript optional! Feb 18, 2019
@mlc-mlapis
Copy link
Contributor

mlc-mlapis commented Feb 18, 2019

@devapp24 ... really not sure where do you get the info about The majority of companies, I say over 90%, will still choose ES6+ over typescript. Can you tell us some important data, based on which you build your statement?

@devapp24
Copy link
Author

devapp24 commented Feb 18, 2019

@devapp24 ... really not sure where do you get the info about The majority of companies, I say over 90%, will still choose ES6+ over typescript. Can you tell us some important data, based on which you build your statement?

I see you're based in Czech Republic. I have no information about web development job market in Czech Republic. I've never been there.

Here in North America, out of 300 local web dev jobs, you'll find about 10 Angular front end positions. About 2 out of that 10 positions will demand Angular with typescript. Others will give you an option to use Angular 2+ or just stick with AngularJS 1.x. You'll find maybe 40+ ReactJS positions out of the 300, and 5+ for VueJS. The rest of them may not depend on frontend frameworks and use CMS like Wordpress, Drupal, etc.

TypeScript should be completely optional... it should come as a module that you can install to ES6+ based Angular. Average companies will not require TypeScript.

I've talked to a business owner who made three million dollars by developing Angular JS 1.x apps. He still prefers Angular JS 1.x. He doesn't see Angular with typescript as an upgrade. Many successful companies which built Angular JS 1.x apps now moved to React JS. However, they could give Angular a second thought if Angular 2+ was based on ES6+, not TypeScript.

@mlc-mlapis
Copy link
Contributor

mlc-mlapis commented Feb 18, 2019

@devapp24 ... hmm, OK, that argumentation sounds certainly valid from your point of view. But there should also be some different point of views (around the whole world) then because if you go through most of the comparisons and analysis, developer studies, ... especially from the mid and large enterprise teams point of views, the fact that Angular is based on TS is always on top of its best features. You can see the same trend in Vue (where the new version will be fully based on TS also) and React actually. So from that point of view, the request to use Angular with only pure ES6+ coding sounds like a minority really.

@devapp24
Copy link
Author

@mlc-mlapis

Well, React has a TypeScript npm package you can install. I've seen a few React projects which use TypeScript. I think Angular should come with ES6+ core and give you an option to install TypeScript npm package.

@mlc-mlapis
Copy link
Contributor

@devapp24 ... I mean that Angular is fully written (and Vue will be in a short time) in TS ... and it means also full support for typing through the all its code. So do you really mean that it should be re-written to ES6+ code?

@devapp24
Copy link
Author

devapp24 commented Feb 18, 2019

@devapp24 ... I mean that Angular is fully written (and Vue will be in a short time) in TS ... and it means also full support for typing through the all its code. So do you really mean that it should be re-written to ES6+ code?

Ideally we can request two versions of Angular. ES6+ version and TypeScript version...
or they can create ES6+ version AngularJS.

@dawidgarus
Copy link

@devapp24 Ideally ngc should statically analyze JS as it does with TS and generate ngfactory files (or whatever it generates with Ivy). I'm pretty sure this should be possible with es modules using es6 syntax. TypeScript compiler would still be required, but you could write code in pure JS and it would be possible to use Babel.

@devapp24
Copy link
Author

devapp24 commented Feb 18, 2019

FACT: Typescript will never beat Javascript in popularity... that won't happen. Too much have been accomplished/established using JS. It's very rational to make ES6+ based Angular and provide typescript support as an installable package.

@sarunint
Copy link
Contributor

sarunint commented Feb 18, 2019

Actually, Angular has been shipping ES2015 code since version 2, and it does not ship TypeScript code. There is also UMD bundles for you to throw that in the script tag and start using Angular in the old way.

But to take the advantage of AoT, you need TypeScript compiler. If you look closely, the only place in Angular that requires TypeScript is @angular/compiler-cli. (Yes, even the compiler itself does not require TypeScript.)

@devapp24
Copy link
Author

TypeScript is a cult created by Microsoft. No companies actually need TypeScript to develop a web application.

@manklu
Copy link

manklu commented Feb 18, 2019

@devapp24 Nobody actually needs a language to write software. Hex codes are more than enough.

If you don't like it, don't use it.

@devapp24
Copy link
Author

devapp24 commented Feb 19, 2019

@devapp24 Nobody actually needs a language to write software. Hex codes are more than enough.

In the end, this Typescript drama is about two corporations forcing developers to use code language they have developed & invested in for their own interests.

This poor attempt should not be accepted. I hope future Angular users won't have to become ambassadors of this poor code language that represents corporations' interests. The two corporations' greed should not be a part of your business when you develop any web app.

The two corporations, Microsoft and Google, just wanted to create new market for themselves. That's why they have created TypeScript. They used Angular and its developers to promote their own interests.

@bvdmitri
Copy link

Actually, almost all features of TypeScript in Angular project is fully optional (decorators is the only exception here). You can simply ignore the fact you are coding in a different programming language because the syntax between TypeScript and ES6+ are the same.

You can also create your TSLint rules to forbid using TypeScript additional features in your project.

@dawidgarus
Copy link

TypeScript is a cult created by Microsoft. No companies actually need TypeScript to develop a web application.

Not true. I work for large IT company (6000 employees) and we use TypeScript (frontend Angular app) and ES6 (toolset and stub server for development) and everyone agrees that TS rocks and we should migrate all our code to TS. There are number of bugs we could have prevented with static typing, not to mention productivity boost due to code completion.
From my experience: once you go TypeScript, you'll never go back.

@devapp24
Copy link
Author

A lot of Google employees are commenting here.. but I stand with the normal business owners and other normal companies.

Angular 2+ is the least popular frontend framework. VueJS will become more successful than Angular 2+. It's time for Google to offer ES6+ based Angular with an option to add TypeScript module.

#boycottTypeScript #boycottAngular

@jotatoledo
Copy link
Contributor

jotatoledo commented Feb 19, 2019

Bla bla bla, you make a lot of points with no background.

The state of javascript 2018 collected some data about ts, that provides a base to counter argument most of your ideas. Typescript has already grown in popularity over time, and it will keep on going.

I think its time to close this joke of an issue.

@devapp24
Copy link
Author

devapp24 commented Feb 19, 2019

My opinions are based on legitimate observations.

https://www.kelltontech.com/kellton-tech-blog/top-5-front-end-javascript-frameworks-2018

VueJS and ReactJS are now way more popular than Angular 2+.
AngularJS used to be a leading framework... typescript has ruined the whole AngularJS ecosystem.
Google should bring back JS to Angular. They will do whatever to convince more developers to use their TypeScript... but it will fail. Soon, you'll see Angular version 10 that is still much less popular than their original AngularJS 1.x. This is utter nonsense.

TypeScript is a very poor attempt to create a new market in already-sturated JS market. It's completely based on blind trust of developers. It doesn't bring any benefit to development. There are still more cons for using it.

Now there are more job positions for VueJS and ReactJS developers. This is a very obvious consequence of forcing such isolated language to this framework.

R.I.P. Angular

#boycottTypeScript #boycottAngular #RIPangular

@bvdmitri
Copy link

@devapp24 https://en.m.wikipedia.org/wiki/Dunning鈥揔ruger_effect

@devapp24
Copy link
Author

@devapp24 https://en.m.wikipedia.org/wiki/Dunning鈥揔ruger_effect

Wow, I want to show that to TypeScript developers! Thanks for the link.

@bvdmitri
Copy link

@devapp24 it was about you, btw

@devapp24
Copy link
Author

@devapp24 it was about you, btw

You too ;)

@angular angular locked as too heated and limited conversation to collaborators Feb 19, 2019
@IgorMinar
Copy link
Contributor

IgorMinar commented Feb 19, 2019

Thanks for the feature request. There are however several issues with it and mainly due to your combative argumentation style which has no place on our issue tracker and violates our code of conduct I'm going to close it.

But before I do here are some facts:

  1. authoring Angular apps in typescript is optional, you can use ES5, ES2015, or ES2016 (fun fact: officially there is no such thing as ES6). We documented all options in early days just to realize that most people cared only about the typescript option. If we haven't yet we will soon deprecate the ES5 DSL and remove the support for ES5.
  2. Enterprises and powerusers prefer typescript.
  3. New developers prefer typescript if they are working in a project that has the build pipeline preset for them. This is mainly due to autocompletion and ide support.
  4. Typescript is one of the fastest growing languages on GitHub
  5. Many react and Vue users are converting to use typescript.
  6. Vue development has moved over to typescript.
  7. Most of new FE development at Google is done in typescript.
  8. Angular is more popular than AngularJS ever has been.
  9. We appreciate your feedback. Every feedback whether we like it or not contains some useful info.
  10. We care about people, our community, and our team and their well-being. And we won't tolerate combative arguments, disrespectful comments, and bullying. We hope that you can step back, look over your comments and recognize that your current behavior is violating our code of conduct and we hope to see you back on GitHub contributing in a respectful and cooperative and constructive way.

Until then I'm closing this thread. If more unconstructive comments are posted here, we'll lock this thread, please don't force us to do that.

I get that it's easy to lose your cool when you feel strongly about something. Passion or anger can cause us to say or write things we would normally not say. So please take some time to reflect and think about what is the thing you care the most about (it seems to be the es2015 support) and come back to discuss that in a constructive and positive way. Thanks 鉂わ笍

@angular angular unlocked this conversation Feb 19, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants