首页
注册
登录
windmemory 最近的时间轴更新
windmemory's repos on GitHub
Swift · 7 人关注
PhotoCollectionView
JavaScript · 1 人关注
JoyDancingApp
JavaScript · 1 人关注
JoydancingServer
JavaScript · 0 人关注
ace-builds
C · 0 人关注
AudioSNS
JavaScript · 0 人关注
Autosuggest-Misspelling
Java · 0 人关注
bigdata-assignments
Assignments for INST767 Big Data Infrastructure
0 人关注
blog
TypeScript · 0 人关注
bot5
Wechaty Community Assitant Bot
TypeScript · 0 人关注
bot5.club
Bot Friday Club - BOT5
0 人关注
cheerio
Fast, flexible, and lean implementation of core jQuery designed specifically for the server.
Shell · 0 人关注
docs
Chatie Documentations
0 人关注
egg-bus
🐣用 egg 编写优雅的队列与事件
0 人关注
egg-core
A core Pluggable framework based on koa.
0 人关注
git-scripts
Git Hooks Integration for Chatie Projects
0 人关注
hexo-starter
Hexo Starter site (use `npx hexo init myBlog`)
0 人关注
io
Chatie Cloud Input/Output Service
0 人关注
langchainjs
Python · 0 人关注
Leet-code-practice-
JavaScript · 0 人关注
LiuerLearnCode
JavaScript · 0 人关注
messageThrower
0 人关注
node-win32-api
win32 api
0 人关注
oss-bot
Apache Open Source Software BOT
TypeScript · 0 人关注
pre-angel.com
PreAngel Home, Portfolio Directory, and News Updates.
0 人关注
proposal
A repository for gRFCs
0 人关注
PyMicroChat
JavaScript · 0 人关注
rally
0 人关注
random-useragent
Get a random user agent (with an optional filter to select from a specific set of user agents).
TypeScript · 0 人关注
repro-grpc-bug
0 人关注
syfxlin
windmemory
🏢
句子互动
/ Fullstack Software Engineer
V2EX 第 544560 号会员,加入于 2021-05-06 13:37:29 +08:00
北京
windmemory
windmemory
提问
技术话题
好玩
工作信息
交易信息
城市相关
windmemory 最近回复了
2021-05-12 13:45:16 +08:00
回复了
henryhu
创建的主题
›
Node.js
›
Typescript 越来越流行吗?我觉得它带来的收益还是小于成本,对于已经存在的项目,没有必要使用 TS
Typescript 其实是给了 Javascript 一个很好的静态约束,我们公司所有的项目都是用了 Typescript 的。
我觉得无论是大项目还是小项目,都应该上 Typescript,好处有 3
1. VSCode 支持 Typescript 的类型推断,如果你定义好了类型,那么在任意的文件里面你都能看到当前的值是什么样的,不需要一点点找变量声明的地方
2. 减少低级错误,如果是 Javascript,如果一个 Object 里面某个值的 key 里面有 typo,那么 Javascript 一般是不会报错的,但是如果用了 Typescript,就会在运行前直接报错出来
3. 对于长时间维护的项目,减少对于旧代码的回忆成本
»
windmemory 创建的更多回复
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
959 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms ·
UTC 18:48
·
PVG 02:48
·
LAX 11:48
·
JFK 14:48
Developed with
CodeLauncher
♥ Do have faith in what you're doing.