Now, there is a easy way to avoid this--teach people TypeScript first regardless of their programming experience.
- is type-safe. If you make a type error, the TypeScript compiler will let you know how to fix it before it goes into production.
- is flexible. You can use as little TypeScript as you want (not recommended though).
- teaches computer data types to people that otherwise would never know what they are. This is very transferable knowledge.
- is adopted by countless companies. It is worth adding to your resume.
New and experienced developers benefit from TypeScript features, there are little to no reasons to not use it.
The one issue with learning TypeScript is that it takes more effort to set up. This requires introducing concepts such as compilers and transpilers and the tooling (e.g. Babel) to the beginner which can be overwhelming if not done carefully.
That said, setting up a TypeScript project is much easier than setting up a Java project and understanding what the hell a JVM is. The reason I call out Java is because, in many intro classrooms is the past and current day, Java was the intro to programming language of choice and people still managed to make it through that.
We know there is a lack of beginner TypeScript content on the web. There is only way to solve that issue.
Make quality content and tutorials for beginners in TypeScript.
That's it. I believe such content has the ability to be of higher quality and effectiveness than what currently exists, so I intend to make web development tutorials and guides for complete beginners in TypeScript. If you're a web dev educator, you should too.