Learning Typescript: Enhance Your Web Development Skills Using Type-Safe JavaScript (Paperback)
暫譯: 學習 TypeScript:提升您的網頁開發技能,使用類型安全的 JavaScript (平裝本)
Josh Goldberg
- 出版商: O'Reilly
- 出版日期: 2022-07-12
- 定價: $1,980
- 售價: 9.0 折 $1,782
- 語言: 英文
- 頁數: 318
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1098110331
- ISBN-13: 9781098110338
-
相關分類:
JavaScript、TypeScript
-
相關翻譯:
TypeScript 學習手冊 (Learning Typescript: Enhance Your Web Development Skills Using Type-Safe JavaScript) (繁中版)
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$450$315 -
$1,470$1,397 -
$229用 Python 寫網絡爬蟲 (Web Scraping with Python)
-
$293Python 網絡爬蟲實戰
-
$332ASP.NET Core 跨平臺開發從入門到實戰
-
$680$537 -
$2,840$2,698 -
$450$356 -
$420$357 -
$580$493 -
$520$442 -
$790$624 -
$580$458 -
$580$458 -
$2,160$2,052 -
$653C# 8.0 和 .NET Core 3.0 高級編程
-
$2,660JavaScript Cookbook: Programming the Web 3/e
-
$560$437 -
$880$695 -
$650$507
商品描述
TypeScript has conquered the world of JavaScript: it's one of the world's fastest growing and most popular languages across developer surveys, widely used in consumer and business companies alike, and frequently credited for helping massive web applications scale. But what is TypeScript? How does it work, why does it work, and how can we use it?
Learning TypeScript takes beginner to intermediate JavaScript programmers from knowing nothing about types or a type system to full mastery of the fundamentals of TypeScript. It's more than a means to find bugs and typos--it's a useful system for declaring the way our JavaScript should work and helping us stick to it. You'll learn how TypeScript:
• interacts with JavaScript
• analyzes and understands code
• augments your existing development pattern
• helps you document your code
• works with IDEs to provide refactoring tools
• assists local development in refactoring code
• helps you develop more quickly with fewer bugs
Who Should Read This Book
If you have an understanding of writing JavaScript code, can run basic commands in a terminal, and are interested in learning about TypeScript, this book is for you.
Maybe you’ve heard TypeScript can help you write a lot of JavaScript with fewer bugs (true!) or document your code well for other people to read (also true!). Maybe you’ve seen TypeScript show up in a lot of job postings, or in a new role you’re starting.
Whatever your reason, as long as you come in knowing the fundamentals of JavaScript—variables, functions, closures/scope, and classes—this book will take you from no TypeScript knowledge to mastering the fundamentals and most important features of the language.
By the end of this book, you will understand:
• The history and context for why TypeScript is useful on top of “vanilla” JavaScript
• How a type system models code
• How a type checker analyzes code
• How to use development-only type annotations to inform the type system
• How TypeScript works with IDEs (Integrated Development Environments) to provide code exploration and refactoring tools
And you will be able to:
• Articulate the benefits of TypeScript and general characteristics of its type system.
• Add type annotations where useful in your code.
• Represent moderately complex types using TypeScript’s built-in inferences and new syntax.
Navigating this Book
Learning TypeScript has two purposes:
• You can read through it once to understand TypeScript as a whole.
• Later, you can refer back to it as a practical introductory TypeScript language reference.
This book ramps up from concepts to practical use across three general sections:
• Part I, “Concepts”: How JavaScript came to be, what TypeScript adds to it, and the foundations of a type system as TypeScript creates it.
• Part II, “Features”: Fleshing out how the type system interacts with the major parts of JavaScript you’d work with when writing TypeScript code.
• Part III, “Usage”: Now that you understand the features that make up the TypeScript language, how to use them in real-world situations to improve your code reading and editing experience.
商品描述(中文翻譯)
TypeScript 已經征服了 JavaScript 的世界:它是全球增長最快且最受歡迎的語言之一,在開發者調查中廣泛使用於消費者和商業公司,並經常被認為有助於大型網頁應用程序的擴展。但 TypeScript 是什麼?它是如何運作的,為什麼它能運作,我們又該如何使用它?
《學習 TypeScript》將初學者到中級的 JavaScript 程式設計師從對類型或類型系統一無所知,帶到完全掌握 TypeScript 基礎知識。它不僅僅是一種尋找錯誤和打字錯誤的手段——它是一個有用的系統,用於聲明我們的 JavaScript 應該如何運作並幫助我們遵循這一點。你將學到 TypeScript 如何:
• 與 JavaScript 互動
• 分析和理解代碼
• 增強你現有的開發模式
• 幫助你記錄代碼
• 與 IDE(集成開發環境)協作提供重構工具
• 協助本地開發中的代碼重構
• 幫助你更快地開發並減少錯誤
誰應該閱讀這本書
如果你了解如何編寫 JavaScript 代碼,能夠在終端中運行基本命令,並且有興趣學習 TypeScript,那麼這本書就是為你準備的。
也許你聽說過 TypeScript 可以幫助你用更少的錯誤編寫大量 JavaScript(這是真的!)或為其他人良好地記錄你的代碼(這也是真的!)。也許你在許多工作職位中看到了 TypeScript,或者在你即將開始的新角色中看到了它。
無論你的理由是什麼,只要你了解 JavaScript 的基本概念——變量、函數、閉包/作用域和類——這本書將帶你從對 TypeScript 一無所知到掌握這門語言的基礎和最重要的特性。
在這本書結束時,你將理解:
• TypeScript 在「原生」JavaScript 之上為什麼有用的歷史和背景
• 類型系統如何建模代碼
• 類型檢查器如何分析代碼
• 如何使用僅限開發的類型註解來告知類型系統
• TypeScript 如何與 IDE(集成開發環境)協作提供代碼探索和重構工具
你將能夠:
• 清楚表達 TypeScript 的好處和其類型系統的一般特徵。
• 在你的代碼中添加有用的類型註解。
• 使用 TypeScript 的內建推斷和新語法表示中等複雜的類型。
導航這本書
學習 TypeScript 有兩個目的:
• 你可以通讀一遍以了解 TypeScript 的整體。
• 之後,你可以將其作為實用的 TypeScript 語言入門參考回顧。
這本書從概念到實際使用分為三個一般部分:
• 第一部分,「概念」:JavaScript 是如何產生的,TypeScript 為其添加了什麼,以及 TypeScript 創建的類型系統的基礎。
• 第二部分,「特性」:詳細說明類型系統如何與你在編寫 TypeScript 代碼時會使用的 JavaScript 主要部分互動。
• 第三部分,「用法」:現在你已經了解構成 TypeScript 語言的特性,如何在現實情況中使用它們來改善你的代碼閱讀和編輯體驗。
作者簡介
Josh Goldberg is a frontend developer from New York with a passion for open source, static analysis, and the web. He is a full-time open-source maintainer who contributes regularly to TypeScript and open-source projects in its ecosystem, such as typescript-eslint and TypeStat. His past work includes spearheading Codecademy's usage of TypeScript, helping create its Learn TypeScript course, and architecting rich client applications at Microsoft. His projects range from static analysis to meta-languages to re-creating retro games in the browser. Also cats.
作者簡介(中文翻譯)
Josh Goldberg 是來自紐約的前端開發者,對開源、靜態分析和網頁充滿熱情。他是一名全職的開源維護者,定期為 TypeScript 及其生態系統中的開源專案貢獻,例如 typescript-eslint 和 TypeStat。他過去的工作包括主導 Codecademy 使用 TypeScript,協助創建其 Learn TypeScript 課程,以及在微軟設計豐富的客戶端應用程式。他的專案範圍從靜態分析到元語言,再到在瀏覽器中重製復古遊戲。此外,他也喜愛貓咪。