Skip to main content

My Opinions

These are some of my thoughts about Typescript.

My History:

I first started using Typescript when I actually didn't have much Javascript experience.

This also wasn't pure Typescript... it was TS in React. It is for those reasons that TS was extremely difficult to use. I ran into the "Where is this error coming from?" mindset. It was difficult to debug b/c I didn't have the necessary fundamentals down.

So then I spent alot of time with vanilla JS and just learning other basic things such as webpack, storage (cookies, local/session, indexedDB, WebSQL, etc.), WASM, service workers, the Window object, etc... basically the fundamentals of chrome dev tools and frontend dev (everything beyond basic HTML, CSS, JS)

The next time I dove in Typescript was with Angular. This time it didn't bother me.

Typescript is basically an intellisense / "compiler" (transpiler) tool. TS transpiles to JS... so the only reason to use TS if you want intellisense when coding, or if you want the transpiler to check that you are using eerything "correctly". I.e. if a function takes a certain object shape as a parameter, typescript helps you enforce that shape.

It's funny b/c with my background (primary language): C# -> JS -> No Primary I went from Strongly Typed -> Freeform -> Some sort of mix.

I will always advocate for flexibility (JS) for little scripts and for type safety for larger more important applications.

Like:

Dislike: