r/angularjs • • May 25 '16

Some complaints about angular2/angular-cli

https://gist.github.com/NullVoxPopuli/82ee489121fcc21a0e80aaf88559dada
9 Upvotes

29 comments sorted by

View all comments

18

u/brokentyro May 25 '16

Typescript

You don't have to use Typescript.

no recommended project structure

https://angular.io/styleguide

no default templating language

How about HTML? I would be extremely unhappy if the forced something like Jade on me by default.

9

u/bemlikanz May 25 '16

Totally agreed. Mostly developers spent 5 hours with angular 2 with no ES6 knowledge and mostly of their complaints are about new ES6 changes that they are not used to and thinks Angular2 is bad.

People need to learn ES6.

Plus, even if you have to use typescript, (almost) every valid JS is a valid TS. TS impacts so little...

1

u/[deleted] May 31 '16

For me its not the syntax itself, its more that setting it up properly is still bad. The performance with Gulp or NPM on compiling it is bad (milliseconds with normal JS, to almost seconds with TS. Add concat, uglify to the mix and it just takes too long). Plus getting external librarys working is a hassle. Still haven't found how i can use an external vanilla plugin into my code that isn't written in ES6 (import/export). Not to mention the type files are annoying most of the time.

And if its primary reason to exist is to prevent mixing types, its just stupid to use. Most of the JS linters are able to tell you not to mix your types and lots of progress can be made there and with editors themselves (like many now still need to get their ES6 support improved).

And you can also have some say in that some ES6 stuff just is not that great. People want you to believe that its super amazing but it does have its downsides. Plus the team have been implementing some parts of it, just for the sake of it. Not to make things better or to have some improvements, but just for the sake of using ES6. So i can understand why people are acting like they do.

And sure, there are alternatives for using template files and whatnot, but 90% of the tutorials and solutions on stackoverflow aren't using that. So you are still kinda forced to implement them or at least get to know them pretty well or you will end up losing lots of time just to get to the point where a problem is solved.