Mastering Typescript 3 - Third Edition

Rozentals, Nathan

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

商品描述

Key Features

  • Learn the key features of TypeScript 3 and explore advanced language features through in-depth discussions.
  • Use TypeScript with modern frameworks including Backbone, Angular, Aurelia, React, and Node.
  • Explore TDD practices, OOP techniques, and industry best practices to create high-quality, modular, and adaptable applications.

Book Description

TypeScript is both a language and a set of tools to generate JavaScript. It was designed by Anders Hejlsberg at Microsoft to help developers write enterprise-scale JavaScript.

Starting with an introduction to the TypeScript language, before moving on to basic concepts, each section builds on previous knowledge in an incremental and easy-to-understand way. Advanced and powerful language features are all covered, including asynchronous programming techniques, decorators, and generics.

This book explores many modern JavaScript and TypeScript frameworks side by side in order for the reader to learn their respective strengths and weaknesses. It will also thoroughly explore unit and integration testing for each framework.

Best-of-breed applications utilize well-known design patterns in order to be scalable, maintainable, and testable. This book explores some of these object-oriented techniques and patterns, and shows real-world implementations.

By the end of the book, you will have built a comprehensive, end-to-end web application to show how TypeScript language features, design patterns, and industry best practices can be brought together in a real-world scenario.

What you will learn

  • Gain insights into core and advanced TypeScript language features
  • Integrate existing JavaScript libraries and third-party frameworks using declaration files
  • Target popular JavaScript frameworks, such as Angular, React, and more
  • Create test suites for your application with Jasmine and Selenium
  • Organize your application code using modules, AMD loaders, and SystemJS
  • Explore advanced object-oriented design principles
  • Compare the various MVC implementations in Aurelia, Angular, React, and more

Who this book is for

This guide to the TypeScript that starts with basic concepts, and then builds on this knowledge to introduce more advanced language features and frameworks. No prior knowledge of JavaScript is required, although some prior programming experience is assumed. If you are keen to learn TypeScript, this book will give you all of the necessary knowledge and skills to tackle any TypeScript project. If you are already an experienced JavaScript or TypeScript developer, then this book will take your skills to the next level. Learn how to use TypeScript with a multitude of modern frameworks, and choose the best framework for your project requirements. Investigate techniques for Test Driven Development, explore industry-standard design patterns, and learn how to put together a full production-ready TypeScript application.

商品描述(中文翻譯)

主要特點


  • 通過深入討論,了解TypeScript 3的主要特點並探索高級語言特性。

  • 使用TypeScript與現代框架,包括Backbone、Angular、Aurelia、React和Node。

  • 探索TDD實踐、OOP技術和行業最佳實踐,以創建高質量、模塊化和適應性強的應用程序。

書籍描述

TypeScript既是一種語言,也是一套生成JavaScript的工具。它由微軟的Anders Hejlsberg設計,旨在幫助開發人員編寫企業級JavaScript代碼。

從介紹TypeScript語言開始,然後逐步深入理解基本概念,每個部分都建立在前面的知識基礎上,以增量和易於理解的方式進行。書中還涵蓋了高級和強大的語言特性,包括異步編程技術、裝飾器和泛型。

本書通過並排比較多種現代JavaScript和TypeScript框架,讓讀者了解它們各自的優勢和不足。同時,書中還對每個框架進行了全面的單元測試和集成測試。

最佳應用程序利用眾所周知的設計模式,以實現可擴展性、可維護性和可測試性。本書探討了一些面向對象的技術和模式,並展示了實際的應用。

通過閱讀本書,您將建立一個全面的端到端Web應用程序,以展示如何在實際場景中將TypeScript語言特性、設計模式和行業最佳實踐結合起來。

你將學到什麼


  • 深入了解核心和高級TypeScript語言特性

  • 使用聲明文件集成現有的JavaScript庫和第三方框架

  • 針對流行的JavaScript框架(如Angular、React等)進行開發

  • 使用Jasmine和Selenium為應用程序創建測試套件

  • 使用模塊、AMD加載器和SystemJS組織應用程序代碼

  • 探索高級面向對象的設計原則

  • 比較Aurelia、Angular、React等框架中的各種MVC實現方式

適合閱讀對象

本書從基本概念開始,然後建立在此基礎上介紹更高級的語言特性和框架。不需要JavaScript的先備知識,但需要一些編程經驗。如果您有興趣學習TypeScript,本書將為您提供所有必要的知識和技能,以應對任何TypeScript項目。如果您已經是經驗豐富的JavaScript或TypeScript開發人員,本書將使您的技能更上一層樓。學習如何在多種現代框架中使用TypeScript,並根據項目需求選擇最佳框架。探索測試驅動開發技術,研究行業標準的設計模式,並學習如何構建完整的生產就緒的TypeScript應用程序。

目錄大綱

Table of Contents

  1. TypeScript - Tools and Framework Options
  2. Types, Variables, and Function Techniques
  3. Interfaces, Classes, and Inheritance
  4. Decorators, Generics, and Asynchronous Features
  5. Declaration Files and Compile Options
  6. Third-Party Libraries
  7. TypeScript Compatible Frameworks
  8. Test Driven Development
  9. Testing Typescript Compatible Frameworks
  10. Modularization
  11. Object-Oriented Programming
  12. Dependency Injection
  13. Building Applications
  14. Let's Get Our Hands Dirty

目錄大綱(中文翻譯)

目錄


  1. TypeScript - 工具和框架選項

  2. 類型、變量和函數技巧

  3. 接口、類和繼承

  4. 裝飾器、泛型和異步特性

  5. 聲明文件和編譯選項

  6. 第三方庫

  7. TypeScript 兼容的框架

  8. 測試驅動開發

  9. 測試 TypeScript 兼容的框架

  10. 模塊化

  11. 面向對象編程

  12. 依賴注入

  13. 構建應用程序

  14. 讓我們動手做