DEV Community

Discussion on: Pitch me on TypeScript

Collapse
okbrown profile image
Orlando Brown

Learn a typed language and understand why it's important. Then come back to JavaScript and it will make sense.

However it's a painful thing to view, my eyes really can't take the extra bloat and cognitive load at first is always a pain. But we adapt and then learn to rely on the predictably and make less assumptions because it also self documents the inputs and outputs.

I wish the error messaging was more clear though, sometimes it can be a proper mystical journey on why a particular type is incorrect when there are many of them to soft through. (Keep it simple I guess 🤷🏾‍♂️)