re: TypeScript is a waste of time. Change my mind. VIEW POST

re: Thank you for your input! Allow me to respond and clarify: JS is typed language, it is dynamically-type-checked language (or some people short it...

It's impossible to do completely strict types in TypeScript / JavaScript, and there's always going to be that one case that cannot be fixed with this.

You have to understand where it is impossible: at the I/O boundary where your typed system talks with the outside world. Types help to make sure statically that the typed part of the program does not contain type errors. If the I/O boundaries are clearly delineated, and the data is cleanly marshalled from the untyped world into the typed world, you will clearly see the benefit if the typed world is large. If the only thing you do in your programs is manipulate the untyped data, it is easier without types.

code of conduct - report abuse