Earlier quoted context omitted.
I am pretty sure that TypeScript just adds type safety and is optional. I don't see this as a huge negative and I actually see this as a positive. Just curious, what and why are all your reasons to move away from Angular?
- Breaking changes - Obtuse, verbose, non-performant code - Did I mention breaking changes?
Angular 2: Built on TypeScript
61–70 of 235 posts
Re: Angular 2: Built on TypeScript
#62I don't care what people say Angular totally suffers from the second system effect. http://en.wikipedia.org/wiki/Second-system_effect
Re: Angular 2: Built on TypeScript
#63My main feeling about this is not so much about typeScript (which, meh, some syntax sugar I don't care about, and tooltips for an IDE I don't use) -- more it's that just the mere whiff of Microsoft's involvement will be enough to snuff out remaining developer interest in Angular 2.
Re: Angular 2: Built on TypeScript
#64I don't care what people say Angular totally suffers from the second system effect. http://en.wikipedia.org/wiki/Second-system_effect
Perhaps I'm speaking from the perspective of our products at Yahoo, but ember has suited us well for precisely these tenets.
--Sam
Re: Angular 2: Built on TypeScript
#65Earlier quoted context omitted.
Yes Dart compiles to javascript, but it has pretty different semantics from javascript and needs to insert extra javacript to get your transpiled javascript to run. For example, noSuchMethod isn't available in all js engines so using https://www.dartlang.org/articles/emulating-functions/#inter... in dart would require a non-trivial amount of wrapping code to be generated. http://stackoverflow.com/questions/8815437/wh…
> And the size of helloworld.dart.app.js is 102k No, it's not. dart2js --minify hello.dart -o hello.dart.js Results in a 5 KB JS file. This game is 35 KB (procedural graphics included): http://mbtic.com/games/fuzetsu
264 Mar 5 12:21 a.dart
237K Mar 5 12:21 a.js
101K Mar 5 12:22 a.min.js
It was also slow to compile, 6 secs.Anything I'm missing?
Re: Angular 2: Built on TypeScript
#66As if we didn't have enough reason to move on from Angular. Now you need to learn Typescript to contribute or grok the source files?
Everyone seems to hate on JavaScript but it's really not that bad to use.
Re: Angular 2: Built on TypeScript
#67Earlier quoted context omitted.
No Dart compiles to JS. Obviously there is some overhead with transpiling languages, but it's actually pretty small. They have done a good job with it.
Dart can be run in both modes. Chrome (dunno if enabled by default and/or in stable) contains a Dart VM, so you "only" need to transpile into JS for non-Chrome. The main problem I had with Dart was [a year ago] that using existing JS libraries like jQuery wasn't as seemless as I would liked. So that would be a reason against Dart, if Angular wants to make that aspect easier. Haven't looked at TypeScript's interop wit…
In production, it's only ever transpiled to JavaScript.
> Chrome (dunno if enabled by default and/or in stable) contains a Dart VM, so you "only" need to transpile into JS for non-Chrome.
Not the real Chrome. A version of Chromium that you can use to make the development cycle smoother. When you deploy, you still transpile to JavaScript for all browsers.
Re: Angular 2: Built on TypeScript
#68Earlier quoted context omitted.
No Dart compiles to JS. Obviously there is some overhead with transpiling languages, but it's actually pretty small. They have done a good job with it.
Dart can be run in both modes. Chrome (dunno if enabled by default and/or in stable) contains a Dart VM, so you "only" need to transpile into JS for non-Chrome. The main problem I had with Dart was [a year ago] that using existing JS libraries like jQuery wasn't as seemless as I would liked. So that would be a reason against Dart, if Angular wants to make that aspect easier. Haven't looked at TypeScript's interop wit…
All JavaScript is valid TypeScript. This was one of the founding tenants for TypeScript. So interop is "just use the JS".
You can optionally also provide a binding file that tells TypeScript about the JS code so that it can perform compile-time checking on calls. There is a repository of these bindings for common libraries called DefinitivelyTyped [0].
> ... They only had a huge language spec PDF and not a single tutorial or something easier to digest.
Not sure when you originally looked, but there is now a tutorial [1], handbook [2], and samples [3] in addition to the language spec [4].
[0] https://github.com/borisyankov/DefinitelyTyped
[1] http://www.typescriptlang.org/Tutorial
[2] http://www.typescriptlang.org/Handbook
[3] http://www.typescriptlang.org/Samples
[4] http://www.typescriptlang.org/Content/TypeScript%20Language%...
Re: Angular 2: Built on TypeScript
#69As if we didn't have enough reason to move on from Angular. Now you need to learn Typescript to contribute or grok the source files?
This is the main reason why I don't like using languages that transpile into JavaScript. I don't mind the languages themselves but transpiling into JavaScript now means you have to be effective in both languages instead of one to properly debug and you're also subjected to bugs that may or may not be known in the transpile itself. Everyone seems to hate on JavaScript but it's really not that bad to use.
Not all transpilers may be to your taste, but they have their place.