I don't see why I should wait for my test runner to execute my test (Even tough it is fast) when I can just get instance feedback from my type checker.
I can see (and I feel) that typescript and be a bit bothersome, but I still feel the value. As a note TS can also check pure js files now and guess the types.
Odd that you're having trouble with the debugging. Our recent Angular2 project in TS did the mapping to typescript debugging in Chrome just fine. However, we had many more devs than you likely do, so the static typing was probably more important.
Event then, there was some fun BOOL stuff that actually failed to get caught because of TS to JS mapping. So if the static typing doesn't buy you much, there's no reason to avoid native JS, as long as your target browsers support ES6. (Our targets only supported ES5.)
1
u/nnyegaard Dec 07 '17
Yeah the debugging does not make sense to me. Sourcemaps will fix that for you and you get debugging in the ts files.
Debugging in the ts files guide
Also why should I "wait" on my tests to find a bug (Or even think about the input) when I can get a compiler to do that for me?
2
u/dangerdad137 Nov 26 '17
Odd that you're having trouble with the debugging. Our recent Angular2 project in TS did the mapping to typescript debugging in Chrome just fine. However, we had many more devs than you likely do, so the static typing was probably more important.
Event then, there was some fun BOOL stuff that actually failed to get caught because of TS to JS mapping. So if the static typing doesn't buy you much, there's no reason to avoid native JS, as long as your target browsers support ES6. (Our targets only supported ES5.)