DEV Community

Discussion on: TypeScript is a waste of time. Change my mind.

Collapse
 
stringparser profile image
Javier Carrillo Milla • Edited

I looove types! And I really hated them beforehand. As in really really really hating them.

It felt patronising. Like "who do you think you are computer I tell you what to do" patronising.

Now I apologize. Ok sorryyyy...

Even if with TypeScript is not really really really typing they help a lot with refactoring, auto-completion and gives you documentation on the spot from most libraries. So right there you have saved a lot of time changing from being looking at code to switch to browser and check docs.

"Oh, that's what this does. Ok let's see... that argument is not clear. Was the third argument a number or? Ah no, is the first... wait that is for the current version of the package I have? Let me see the package.json... oh great the documentation is only for the latest version. Ok let's update. Wait can I? Wait... what was I doing?"

So for me its totally worth it. Sometimes I browse methods even to see what the API does. It's greaaat!

🕺