# Jeremy Lu - 採用 TypeScript 前你該考慮的十件事 {%hackmd xvbi1ZWpQcCU2-BKrwbQEg %} ###### tags: `jsdc2020`, `下半場 - 術場` --- 缺點: - 需要寫 type - 為了 compile 過,常常需要改變寫法 - 讀得更慢(code 變多) - 3rd party lib 是否支援?(eg. day.js, moment) - 平均增加 30~50 % 開發時間! - 不安全 - non-soundness 可能造成 runtime 出現無法預期的錯誤 替代方案 - flowtype - 乾脆不用,但調整 mindset (OO -> FP) - ramda、sanctuary - 使用狀態機 - xstate - 換語言 - AltJS -> Elm、PureScript、ReScript - to WASM -> Haskell、Rust - Type-level programming