Effective Typescript: 83 Specific Ways to Improve Your Typescript 2/e
暫譯: 有效的 TypeScript:83 種具體方法提升您的 TypeScript 2/e
VanderKam, Dan
- 出版商: O'Reilly
- 出版日期: 2024-06-04
- 定價: $2,170
- 售價: 9.5 折 $2,062
- 語言: 英文
- 頁數: 401
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1098155068
- ISBN-13: 9781098155063
-
相關分類:
JavaScript、TypeScript
立即出貨 (庫存 < 4)
相關主題
商品描述
TypeScript is a typed superset of JavaScript with the potential to solve many of theheadaches for which JavaScript is famous. But TypeScript has a learning curve of its own, and understanding how to use it effectively takes time and practice. Using the format popularized by Effective C++ and Effective Java (both Addison-Wesley), this practical book features 83 items that give specific advice on what to do and what not to do, and how to think about the language.
Author Dan Vanderkam shows you how to apply each item's advice through concrete examples. This book will help you advance from a beginning or intermediate user familiar with TypeScript basics to an expert who knows how to use the language well.
Updated for TypeScript 5, this second edition includes two new chapters on type-level programming and TypeScript recipes.
- Learn the nuts and bolts of TypeScript's type system
- Design types to make your code safer and more understandable
- Use type inference to get full safety with a minimum of type annotations
- Make tactical use of the any type
- Understand how dependencies and type declaration files work in TypeScript
- Successfully migrate your JavaScript code base to TypeScript
商品描述(中文翻譯)
TypeScript 是 JavaScript 的一個有型別的超集,能夠解決許多 JavaScript 所著名的頭痛問題。但 TypeScript 也有其自身的學習曲線,理解如何有效地使用它需要時間和練習。這本實用的書籍採用了《Effective C++》和《Effective Java》(均由 Addison-Wesley 出版)所流行的格式,包含 83 個項目,提供具體的建議,告訴你該做什麼和不該做什麼,以及如何思考這門語言。
作者 Dan Vanderkam 透過具體的範例向你展示如何應用每個項目的建議。這本書將幫助你從一個熟悉 TypeScript 基礎的初學者或中級使用者,進步到一個能夠熟練使用這門語言的專家。
本書已更新至 TypeScript 5,第二版新增了兩個關於型別層級編程和 TypeScript 食譜的新章節。
- 學習 TypeScript 型別系統的基本原理
- 設計型別以使你的程式碼更安全且更易於理解
- 使用型別推斷以在最少的型別註解下獲得完全的安全性
- 策略性地使用 any 型別
- 理解 TypeScript 中依賴關係和型別聲明檔案的運作方式
- 成功將你的 JavaScript 代碼庫遷移到 TypeScript