Sign in
Log inSign up

Is TypeScript enough for "safety" in backend development?

Hugo Mota's photo
Hugo Mota
·Jul 16, 2016

I'm leaning towards using node.js in backend (api) development. I'm interested in it because I really like the javascript community and ecosystem.

Despite that, I kinda hate the mess that is javascript itself. It's too permissive and don't protect me from my mistakes. That makes me very scared when writing code.

I'm looking intoTypeScript to alleviate those symptoms. I REALLY like type annotations and compile time safety, so I'm hoping it will give me some peace of mind.

What do you guys think? Will it be enough?

Even further, can I write tests and have coverage reports in a nice workflow? Is any of you already doing this stuff? What's it like?