وبلاگ بلیان

Pro TypeScript : application-scale JavaScript development

معرفی کتاب «Pro TypeScript : application-scale JavaScript development» نوشتهٔ Steve Fenton (auth.)، منتشرشده توسط نشر Apress : Imprint : Apress در سال 2014. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Pro TypeScript : application-scale JavaScript development» در دستهٔ بدون دسته‌بندی قرار دارد.

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. Starting with an introduction to the language and its features, the book discusses 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 to be considered 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. Topics covered include: key TypeScript language features; how to work with the TypeScript type system; how to transfer object-orientation skills to TypeScript; useful JavaScript patterns and features that work well with TypeScript; how to consume existing JavaScript libraries in TypeScript program; how to run TypeScript in a web browser or on a server. -- Edited summary from book Type CheckingAmbient Declarations; Declaration Files; Definitely Typed; Summary; Key Points; Chapter 3: Object Orientation in TypeScript; Object Orientation in TypeScript; Open Recursion; Encapsulation; Delegation; Polymorphism; SOLID Principles; The Single Responsibility Principle (SRP); The Open-Closed Principle (OCP); The Liskov Substitution Principle (LSP); The Interface Segregation Principle (ISP); The Dependency Inversion Principle (DIP); Design Patterns; The Strategy Pattern; The Abstract Factory Pattern; Practical Example; Mixins; TypeScript Mixins; When to Use Mixins; Restrictions Frameworks and LibrariesNetwork; AJAX; HTTP Get; HTTP Post; WebSockets; Real-Time Communications; Storage; Session Storage; Local Storage; Storage Restrictions; IndexedDB; Upgrade Required; Querying the Database; Adding a New Record; Deleting a Record; IDBRequest Interface; Storage Roundup; Geolocation; Sensors; Battery Status; Proximity Sensor; Light Sensor; Motion and Orientation; Temperature, Noise, and Humidity; Sensor Roundup; Web Workers; Packaging Your Program; Summary; Key Points; Chapter 6: Running TypeScript on a Server; Install Node; Creating a New Project; Simple Node Program Front Matter....Pages i-xxvi TypeScript Language Features....Pages 1-46 The Type System....Pages 47-62 Object Orientation in TypeScript....Pages 63-86 Understanding the Runtime....Pages 87-106 Running TypeScript in a Browser....Pages 107-140 Running TypeScript on a Server....Pages 141-162 Exceptions, Memory, and Performance....Pages 163-176 Using JavaScript Libraries....Pages 177-184 Automated Testing....Pages 185-196 JavaScript Quick Reference....Pages 197-202 TypeScript Compiler....Pages 203-204 Bitwise Flags....Pages 205-208 Coding Katas....Pages 209-212 Back Matter....Pages 213-217 Properties and MethodsClass Heritage; Scope; Property and Arrow Function; Function Wrapping at Point of Call; ECMAScript 5 Bind Function; Choosing a Solution; Type Information; Modules; Internal Modules; External Modules; Module Loading; Export Assignments; Module Merging; Generics; Generic Functions; Generic Interfaces; Generic Classes; Type Constraints; TypeScript Futures; Summary; Chapter 2: The Type System; Type Systems; Optional Static Types; Structural Typing; Type Erasure; Type Inference; Best Common Type; Contextual Types; Widened Types; When to Annotate; Duplicate Identifiers
دانلود کتاب Pro TypeScript : application-scale JavaScript development