Settings

Theme

Ask HN: Is it worth converting a large JavaScript codebase to TypeScript?

5 points by truebosko 6 years ago · 3 comments · 1 min read


As stated. We have a medium-large codebase in Javascript, using webpack to transpile `es2015` code to Javascript, as is standard.

TypeScript may be deemed "yet another shiny thing" by some, but the benefits of a typed superset of Javascript feel quite enticing

Any experiences or thoughts to share?

thebrain 6 years ago

Would the same people that originally wrote the code be doing the conversion? Is it code that was written in a few months or over the course of five or more years? Is the functionally the code provide well documented or is the code itself the documentation? Is there automated testing that can help ensure things still work properly?

I'm sure you see where I'm going with this. :)

acemarke 6 years ago

I'd say absolutely yes, it is.

I wrote up my experiences learning TypeScript here:

https://blog.isquaredsoftware.com/2019/11/blogged-answers-le...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection