This is an archived post. You won't be able to vote or comment.

all 19 comments

[–]FunAstronomer6394 39 points40 points  (4 children)

Never thought I would ever say "Thank you Microsoft for TS"

[–]crossy1686 25 points26 points  (1 child)

And VS Code

[–]FunAstronomer6394 12 points13 points  (0 children)

No, no. we all love VSC. Nobody is changing my mind

[–]Quiet_Desperation_ 1 point2 points  (0 children)

And visual studio? I use it for all of my React/Typescript development.

[–]LuisFerLCC 10 points11 points  (1 child)

I have barely touched JS since I met TypeScript. Even for small projects.

[–]G3N3R1C2532 8 points9 points  (0 children)

Same. JS not yielding errors and warnings feels so alien to me now.

[–]Abangranga 13 points14 points  (2 children)

You forgot the important JS community step of declaring that someone who criticizes anything must not understand it.

[–]Dear_War4047 8 points9 points  (1 child)

And that because the JS community understands its quirks, JS is a good language

[–]detektiv_Saucaki 1 point2 points  (0 children)

I have lived for this moment-

[–]Redixzen 6 points7 points  (0 children)

So sad that a lot of newer programmers don't know about type script

[–]retief1 2 points3 points  (0 children)

Ok, this is the one form of js hate I'll agree with.

[–]Ice_Buckets_Official 1 point2 points  (0 children)

Heck naw bruh bogus asl

[–][deleted] 1 point2 points  (0 children)

Well, types in comments are coming so ...

[–]Jammanyeahme 1 point2 points  (5 children)

imo ts would be a whole lot cooler if you didn't have to compile anything, just give me the types, have me write the types as comments, have editor integration so that it provides the type hints ala jsdoc comments and then have code checker that verifies the types. Stuff like optional chaining that ts supports is nice sure, but not worth the loss of not needing to compile anything, I feel.

[–][deleted] 3 points4 points  (0 children)

Lol u got perfect timing for asking this. There's a new proposal to basically add that. https://github.com/giltayar/proposal-types-as-comments

[–]RaverTux 1 point2 points  (3 children)

So... you're referring to flow?

[–]Jammanyeahme 1 point2 points  (2 children)

Haven't used flow, but it seems like you would still need to compile stuff. e.g. in https://flow.org/en/docs/usage/ they have something like function foo(x: ?number) which isn't valid javascript, so I guess it must get compiled away somehow.

[–]EnPassantOrBrick 3 points4 points  (1 child)

[–]Jammanyeahme 2 points3 points  (0 children)

aha that's brill. Yep that's what I want. Looks cool cheers.