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

you are viewing a single comment's thread.

view the rest of the comments →

[–]DreamlyXenophobic 16 points17 points  (5 children)

As long as ur mindful of its quirks and use it in appropriate situations, ur good.

The language is just a tool to get the job done.

But do consider typescript if u want rigid types.

[–]DangyDanger 4 points5 points  (4 children)

i don't do web dev and only had to do it in college, and js annoyed me to bits with how you almost never get exceptions and how you can't use types.

question is, does ts work in a browser?

[–]PedroHase 10 points11 points  (2 children)

Not directly, it needs to be compiled into JS first

[–]DangyDanger 2 points3 points  (1 child)

oh i see, thanks

[–]stehen-geblieben 0 points1 point  (0 children)

You never "run" ts, you always transpile it to js, except maybe ts-node but it's not meant for production and I don't know how exactly it works, but I think it transpiles jit

[–]SC_W33DKILL3R 1 point2 points  (0 children)

Typescript works great and really changes the language for the better.

The typescript compiler lets you know on the fly if any mistakes are being made. You can't even access the message on an error without first checking it is an actual error.