Pro TypeScript: Application-Scale JavaScript Development
暫譯: 專業 TypeScript:應用規模的 JavaScript 開發
Steve Fenton
- 出版商: Apress
- 出版日期: 2014-08-20
- 售價: $1,760
- 貴賓價: 9.5 折 $1,672
- 語言: 英文
- 頁數: 248
- 裝訂: Paperback
- ISBN: 1430267917
- ISBN-13: 9781430267911
-
相關分類:
JavaScript、TypeScript
海外代購書籍(需單獨結帳)
相關主題
商品描述
JavaScript is everywhere, both as a pure language and in popular libraries like Angular, jQuery and Knockout, but users of modern object-oriented languages like Java and C# often find JavaScript frustrating to use and hard to extend to large-scale applications. TypeScript is an innovative open source language from Microsoft that combines powerful language features and enhanced tooling support with the key attractions of JavaScript as a flexible, dynamic language that can run in any browser and on any operating system. Pro TypeScript tells you everything you need to know about this exciting new language and how to use it in your applications.
Starting with an introduction to the language and its features, the book takes you through some of the major features of TypeScript in depth, from working with the type system through object-orientation to understanding the runtime and the TypeScript compiler. The book then covers some of the factors you need to consider when running a TypeScript application in the browser, including interacting with the DOM, making asynchronous requests, and working with useful browser APIs, followed by a demonstration of server-side TypeScript using the popular Node.js framework.
Because TypeScript compiles to plain JavaScript, exception handling, memory management and garbage collection can differ depending on where you run your program, so these topics get a chapter to themselves. You’ll also find out how to include popular JavaScript frameworks in your applications, so you can combine the benefits of TypeScript with some of the best JavaScript code that’s already out there waiting to be used. The final chapter gives an overview of automated testing for TypeScript applications.
Pro TypeScript offers a balanced and practical guide to a language that will transform your experience of JavaScript development.
商品描述(中文翻譯)
JavaScript 無處不在,無論是作為一種純語言,還是在 Angular、jQuery 和 Knockout 等流行庫中,但使用現代物件導向語言如 Java 和 C# 的用戶常常發現 JavaScript 使用起來令人沮喪,並且難以擴展到大型應用程式。TypeScript 是微軟推出的一種創新的開源語言,結合了強大的語言特性和增強的工具支持,以及 JavaScript 作為一種靈活、動態的語言的主要吸引力,能夠在任何瀏覽器和任何操作系統上運行。《Pro TypeScript》告訴你有關這種令人興奮的新語言及其在應用程式中的使用所需了解的一切。
本書從對語言及其特性的介紹開始,深入探討 TypeScript 的一些主要特性,從使用類型系統到物件導向,再到理解運行時和 TypeScript 編譯器。接著,本書涵蓋了在瀏覽器中運行 TypeScript 應用程式時需要考慮的一些因素,包括與 DOM 互動、進行非同步請求以及使用有用的瀏覽器 API,然後演示了使用流行的 Node.js 框架的伺服器端 TypeScript。
由於 TypeScript 編譯為純 JavaScript,異常處理、記憶體管理和垃圾回收可能會根據你運行程式的地方而有所不同,因此這些主題有一章專門討論。你還將了解如何在應用程式中包含流行的 JavaScript 框架,這樣你就可以將 TypeScript 的優勢與一些已經存在的最佳 JavaScript 代碼結合起來。最後一章概述了 TypeScript 應用程式的自動化測試。
《Pro TypeScript》提供了一本平衡且實用的指南,將改變你對 JavaScript 開發的體驗。