In this article, I will discuss my journey from being an anti-TypeScript developer to a developer who now couldn’t think of going back to the plain JavaScript world. Maybe my thoughts can help someone who is in the same boat as I was in a few years back.
I always felt that adding types to functions/variables and satisfying the TypeScript compiler was over-engineering and didn’t provide any meaningful benefits. Also, it felt slow to work on, as I would always get compilation errors that were hard to understand. I would scratch my head trying to figure out the problem. This caused some frustration, and I started hating TypeScript.
The other reason was advanced TypeScript concepts like generics. They were very hard to understand and I started feeling like I was in the Java world, where every piece of code is strongly typed and overwhelming. Even simple code like the snippet below scared me when I started learning TypeScript:
#javascript #typescript #programming #react