TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

5 点作者 truebosko大约 5 年前
As stated. We have a medium-large codebase in Javascript, using webpack to transpile `es2015` code to Javascript, as is standard.<p>TypeScript may be deemed &quot;yet another shiny thing&quot; by some, but the benefits of a typed superset of Javascript feel quite enticing<p>Any experiences or thoughts to share?

2 条评论

thebrain大约 5 年前
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?<p>I&#x27;m sure you see where I&#x27;m going with this. :)
acemarke大约 5 年前
I&#x27;d say absolutely yes, it is.<p>I wrote up my experiences learning TypeScript here:<p><a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;11&#x2F;blogged-answers-learning-and-using-typescript&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;11&#x2F;blogged-answers-le...</a>
评论 #22410733 未加载