Mastering TypeScript, 2/e (Paperback)

Nathan Rozentals

買這商品的人也買了...

商品描述

Build enterprise-ready, industrial-strength web applications using TypeScript and leading JavaScript frameworks

About This Book

  • Start with the basics, then enhance your knowledge with in-depth discussions on language features, third-party libraries, design patterns and more
  • Practical examples that show how to use TypeScript with popular frameworks, including Backbone, Angular 2, React, Aurelia, Node and others
  • Focus on test-driven development to build high quality applications that are modular, scalable and adaptable

Who This Book Is For

Whether you are a JavaScript developer aiming to learn TypeScript, or an experienced TypeScript developer, this book will take your skills to the next level. From basic to advanced language constructs, test-driven development, object-oriented techniques and industry standard design patterns, you will learn how to get the most out of the TypeScript language.

What You Will Learn

  • Gain an insight into core and advanced TypeScript language features
  • Integrate your existing JavaScript libraries and third-party frameworks by writing and using declaration files
  • Target popular JavaScript frameworks such as jQuery, Backbone, Angular, Aurelia, React, Node, and Express
  • Create extensive test suites for your application with Jasmine, Protactor, and Selenium
  • Organize your application code using modules, AMD loaders, Require and SystemJs
  • Explore advanced object-oriented design principles, including Dependency Injection
  • Understand and compare the various MVC implementations in Aurelia, Angular, React and Backbone
  • Build a complete single-page web application that incorporates CSS animations to enhance your customers' browsing experience

In Detail

The TypeScript language, compiler, and opensource development toolset brings JavaScript development up to the enterprise level. It allows us to use ES5, ES6, and ES7 JavaScript language features today, including classes, interfaces, generics, modules, and more. Its simple typing syntax enables building large, robust applications using object-oriented techniques and industry standard design principles.

Packed with practical, real-world examples, this book is a guide to bringing the benefits of strongly typed, object-oriented programming and design principles into the JavaScript development space. Starting with core language features, and working through more advanced topics such as generics and asynchronous programming techniques, you will learn how to gain maximum benefit from your JavaScript development with TypeScript. With a strong focus on test-driven development, and coverage of many popular and in-demand JavaScript frameworks, you can fast-track your TypeScript knowledge to a professional level. By the end of this book, you will be able to confidently build TypeScript applications, whether you are targeting Angular, Aurelia, React, Backbone, Node, or any other JavaScript framework.

Style and approach

With generous doses of small, easy to follow code samples, this hands-on guide builds up your TypeScript knowledge incrementally. Starting with entry-level concepts, and moving towards intermediate and then advanced techniques, this book provides practical examples of real-world techniques to build robust, testable, adaptable and enterprise-ready JavaScript applications.

商品描述(中文翻譯)

使用TypeScript和領先的JavaScript框架建立企業級、工業強度的Web應用程式。

關於本書:
- 從基礎知識開始,然後通過深入討論語言特性、第三方庫、設計模式等來增強您的知識。
- 提供實際示例,展示如何在流行的框架(包括Backbone、Angular 2、React、Aurelia、Node等)中使用TypeScript。
- 著重於測試驅動開發,以構建模塊化、可擴展和適應性強的高質量應用程式。

本書適合對象:
- 無論您是一名JavaScript開發人員,想要學習TypeScript,還是一名有經驗的TypeScript開發人員,本書都將使您的技能提升到更高的水平。
- 從基礎到高級語言結構、測試驅動開發、面向對象技術和行業標準設計模式,您將學習如何充分利用TypeScript語言。

您將學到的內容:
- 瞭解核心和高級TypeScript語言特性。
- 通過編寫和使用聲明文件,將現有的JavaScript庫和第三方框架集成到您的應用程式中。
- 面向流行的JavaScript框架,如jQuery、Backbone、Angular、Aurelia、React、Node和Express。
- 使用Jasmine、Protactor和Selenium為應用程式創建廣泛的測試套件。
- 使用模塊、AMD加載器、Require和SystemJs組織應用程式代碼。
- 探索高級面向對象設計原則,包括依賴注入。
- 瞭解並比較Aurelia、Angular、React和Backbone中的各種MVC實現方式。
- 構建一個完整的單頁Web應用程式,並使用CSS動畫增強客戶的瀏覽體驗。

詳細內容:
TypeScript語言、編譯器和開源開發工具集將JavaScript開發提升到企業級水平。它允許我們使用ES5、ES6和ES7的JavaScript語言特性,包括類、接口、泛型、模塊等。其簡單的類型語法使我們能夠使用面向對象的技術和行業標準設計原則來構建大型、強大的應用程式。

本書充滿了實用的實例,是將強類型、面向對象的編程和設計原則引入JavaScript開發領域的指南。從核心語言特性開始,逐步介紹更高級的主題,如泛型和異步編程技術,您將學習如何充分利用TypeScript來提高JavaScript開發的效益。本書著重於測試驅動開發,並涵蓋了許多流行且需求量大的JavaScript框架,可以快速提升您的TypeScript知識水平。通過閱讀本書,您將能夠自信地構建TypeScript應用程式,無論您的目標是Angular、Aurelia、React、Backbone、Node還是其他任何JavaScript框架。

風格和方法:
本書通過大量易於理解的小型代碼示例,逐步建立您的TypeScript知識。從入門級概念開始,逐步達到中級和高級技術,本書提供了實用的現實世界技術示例,以構建堅固、可測試、適應性強且企業級的JavaScript應用程式。