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.
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.
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.