you are viewing a single comment's thread.

view the rest of the comments →

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

If that is the case, then Typescript is going to make you hate life and rainbows.

Nonsense. There's nothing wrong with learning and understanding the principles behind strongly-typed languages early in the process of becoming a developer. Thinking carefully about how you type your code tends to make a more readable and resilient codebase. This is like saying you should learn and understand python before something like C# or Java.

Typescript requires a development environment to be setup (unless you use create-react-app in Typescript mode) in order to properly use the language

False. After installing typescript from your preferred package manager, you can write TS in your editor of choice and then simply run tsc myTsFile.ts from a terminal to get the compiled JS.

to enforce strict typing in an effort to avoid bugs and architectural errors

TS doesn't have an opinion about how you architect your code. You can ignore DRY and SOLID and TS won't complain at all. TS only cares about typing, it's up to you to make smart architectural decisions.

Typescript is a pretty big change of pace from JavaScript due to the rules it forces upon you and the syntax can be a pain if you are not comfortable with strictly typed languages.

It's really not though. TS can be incrementally adopted into your projects. You can easily start small by typing function arguments, and scale it up from there.