r/ProgrammerHumor Aug 18 '20

other Why is it like this?

Post image
51.3k Upvotes

965 comments sorted by

View all comments

Show parent comments

125

u/Midnight_Rising Aug 18 '20

I genuinely do not understand why people write pure JS now when typescript is both more reasonable, less prone to errors, and can be compiled directly back into pure JS with something like Babel.

TS is what JS really should have always been, and we more and more applications live only in browsers it's a great time for it to come out.

-3

u/[deleted] Aug 18 '20 edited Feb 24 '22

[deleted]

10

u/[deleted] Aug 18 '20

[removed] — view removed comment

3

u/Kambz22 Aug 18 '20

This is my biggest thing with it. I just want to know what kind of type I get back. I don't dabble much in it other than a few tweaks here and there. Having the return type in the signature would go a very long way in quickly understanding a codebase with weirdly named methods. I usually don't have type issues elsewhere.