Pro TypeScript: Application-Scale JavaScript Development

0
(0)

Pro TypeScript: Application-Scale JavaScript Development
 

  • Author:Steve Fenton
  • Length: 248 pages
  • Edition: 1
  • Publisher: Apress
  • Publication Date: 2014-08-21
  • ISBN-10: 1430267917
  • ISBN-13: 9781430267911
  • Sales Rank: #981487 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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.

    What you’ll learn

    • The key TypeScript language features
    • How to work with the TypeScript type system
    • How to transfer your object-orientation skills to TypeScript
    • Useful JavaScript patterns and features that work well with TypeScript
    • How to consume existing JavaScript libraries in your TypeScript program
    • How to run TypeScript in a web browser or on a server

    Who this book is for

    Pro Typescript is for the professional application developer writing applications to run on JavaScript engines in browsers or on web servers. To get the most out of this book, you should be familiar with object-oriented programming in a modern language such as C# or Java. The techniques shown will build on your existing object-oriented programming skills and show you how to transfer them to your TypeScript applications.

    Table of Contents

    Chapter 1. TypeScript Language Features
    Chapter 2. Working with the TypeScript Type System
    Chapter 3. Object Orientation in TypeScript
    Chapter 4. Understanding the Runtime
    Chapter 5. Running TypeScript in a Browser
    Chapter 6. Running TypeScript on a Server
    Chapter 7. Exceptions, Memory and Performance
    Chapter 8. Using JavaScript Frameworks and Libraries
    Chapter 9. Automated testing

    中文:

    书名:Pro TypeScrip:应用程序规模的JavaScript开发

    无论是作为一种纯粹的语言,还是在ANGLE、jQuery和Knokout等流行的库中,到处都是JavaScript,但Java和C#等现代面向对象语言的用户经常发现,使用JavaScript令人沮丧,而且很难扩展到大规模应用程序中。TypeScrip是微软的一种创新的开源语言,它结合了强大的语言功能和增强的工具支持,以及作为一种灵活的、动态的语言的主要吸引力,可以在任何浏览器和任何操作系统上运行。 每份打印稿 告诉您关于这种令人兴奋的新语言以及如何在您的应用程序中使用它所需了解的一切。

    从介绍该语言及其功能开始,本书将深入介绍TypeScrip的一些主要功能,从使用类型系统到面向对象,再到理解运行库和TypeScrip编译器。然后,该书介绍了在浏览器中运行Type脚本应用程序时需要考虑的一些因素,包括与DOM交互、发出异步请求和使用有用的浏览器API,然后使用流行的Node.js框架演示了服务器端Type脚本。

    因为类型脚本编译成普通的JavaScript,所以异常处理、内存管理和垃圾回收可能会根据您运行程序的位置而有所不同,因此这些主题各自有一章。您还将了解如何在您的应用程序中包含流行的JavaScript框架,这样您就可以将TypeScrip的优点与一些已有的等待使用的最好的JavaScript代码结合起来。最后一章概述了打字应用程序的自动化测试。

    每份打印稿 提供了一种平衡而实用的语言指南,该语言将改变您的JavaScript开发体验。

    你会学到什么?

    • 主要的打字文字语言功能
    • 如何使用打字系统
    • How to transfer your object-orientation skills to TypeScript
    • 可以很好地处理TypeScrip的有用的JavaScript模式和功能
    • 如何在您的TypeScrip程序中使用现有的JavaScript库
    • 如何在Web浏览器或服务器上运行TypeScrip

    这本书是为谁而写的

    专业打字稿 是为专业应用程序开发人员编写的应用程序,这些应用程序可以在浏览器中的JavaScript引擎上运行,也可以在Web服务器上运行。为了充分利用本书,您应该熟悉现代语言(如C#或Java)中的面向对象编程。所展示的技术将建立在您现有的面向对象编程技能的基础上,并向您展示如何将它们转移到您的打字应用程序中。

    目录表

    第1章.打字语言功能
    第2章.使用打字打字系统
    Chapter 3. Object Orientation in TypeScript
    第4章:了解运行时
    第5章.在浏览器中运行TypeScrip
    第6章.在服务器上运行TypeScrip
    第7章异常、内存和性能
    第8章.使用JavaScript框架和库
    Chapter 9. Automated testing

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册