After working in TypeScript for awhile, writing JavaScript feels...


After working in TypeScript for awhile, writing JavaScript feels surprisingly dangerous, and mentally taxing.

Here's why:
✅ TypeScript makes the implicit, explicit.
✅ TypeScript makes an entire set of mistakes impossible.

These benefits greatly reduce mental burden and risk.
Here's a great example:

In JavaScript, I might have spent a long while debugging at runtime before I realized this casing inconsistency.

In #TypeScript, I got a helpful compile-time error that mentioned the exact line where I made the mistake. 👍

View original on X