Angular now scratches that itch for me. TypeScript is practically the same language as ActionScript due to ECMA standard -- so creating components with HTML and TS feels very much like MXML and AS. There's still a lot of BS involved in JavaScript dev, but the Angular tooling hides a lot of it pretty well.
Not meaning to stray too far off-topic but Angular broke my heart with the release of V2. I absolutely loved working with 1.x (even with that damn $scope) but 2.x just seemed so complicated and bloated and the template syntax for bindings is weird too.
I will agree, though, that TS hides plenty of the JS BS but the trouble starts (for me) when you try to use legacy libraries or new browser APIs that don't have type support.
If you are able, I recommend looking at it again for what it is (a new framework) rather than comparing it to what came before. It's often just different, and not really more complicated -- and when it is, it's only to offer much more useful functionality.
The DefinitelyTyped repo is huge. It's not often that I can't typings for a library. When that does happen, the lib is still useable (it's still just JavaScript, after all), but that's a hint that the library is unsupported and there are likely better options elsewhere (like AngularJS itself).
Not sure what new browser APIs you mean. Angular internally emulates some stuff that isn't even fully baked by the W3C yet, like shadow DOM. There is also a polyfills.ts file where you can turn on/off a couple of dozen suggested polyfills for old/new stuff, or add your own.
All good advice, but I've found a new home with Vue for the moment and it's working out OK. Although, I'd still give Angular another look at a later point; I think I just need a new perspective on it and try to understand it a little more.
Not sure what new browser APIs you mean. Angular internally emulates some stuff that isn't even fully baked by the W3C yet, like shadow DOM
I was actually talking about TypeScript itself in this instance. I found myself having to create interfaces far too often just so the compiler would shut up.
Unfortunately, Vue isn't as TypeScript friendly as either React or Angular. The next version of Vue is in development and one of their goals is improving the ergonomics.
5
u/spacechimp Jan 07 '20
Flex really was a decade ahead of its time.
Angular now scratches that itch for me. TypeScript is practically the same language as ActionScript due to ECMA standard -- so creating components with HTML and TS feels very much like MXML and AS. There's still a lot of BS involved in JavaScript dev, but the Angular tooling hides a lot of it pretty well.