Mastering TypeScript - Second Edition

Mastering TypeScript - Second Edition

Posted by jack_miller | Published a year ago

With 5 ratings

By: Nathan Rozentals

Purchased At: $25.75 (17 used & new offers)

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.

I have this book. It is the best book to date for learning TypeScript. One reviewer here criticizes the book for not teaching Javascript. An unworthy critique. TypeScript is not currently supported by any browsers. Google's Angular team has selected it as a kind of pre-compiler to Javascript. Which means, if you want to do Angular 4, etc., you will need to learn TypeScript. This book covers TypeScript completely.

You will need to be experienced with Javascript to learn from this book. The Angular workflow, create components in TypeScript, launch a transcompiler (such as NodeJS with tsc.exe) to convert the TypeScript code into Javascript, load the browser.

- meredith_myers

For those who haven't used it before, TypeScript can be thought of as a strict superset of JavaScript (meaning, all valid JavaScript will "work" in a .ts file). Thus, it's important to understand where JavaScript ends, and TypeScript begins.

The author teaches TypeScript as if JavaScript doesn't exist, and readers are left unclear as to what they can use in a conventional front end app, vs. what truly requires the TypeScript compiler.

My advice -- get a great JS book to learn about classes, decorators, async and await, etc... Then find a book that addresses only the extra parts that TS adds to the picture.

- finn_gutierrez

Lame book.

- kyler_jackson

Super Book!

- aidan_lee

This is a fantastic book.

When I was told that I needed to learn about TypeScript to fit into a new team at a client,
I purchased this book and spent around two weeks after hours working through the chapters and samples.

I found the flow of the book to be at a good pace, each chapter building on the knowledge learned from previous ones.
Coming from a C# background, and understanding object oriented principles, picking up TypeScript felt natural.

When I eventually joined the team, I was quite surprised at how much in-depth knowledge I had
compared to the existing team members. Where I felt comfortable writing basic things like declaration files, generics and promises,
most of the other members still did not fully grasp the concepts, and were still battling by learning through trial and error.

As a new team member, I thought that I would need to spend quite some time learning from everyone else, until my
knowledge had grown to their level. What I found, however was quite the opposite.

With the knowledge and techniques that I had learnt, I was able to contribute to the team's velocity very quickly.
I was also able to identify opportunities for re-factoring, and suggest to the team better ways of tackling difficult problems.

To me, the real strength of this book was the author's coverage of different frameworks. By working through and understanding
how the same concepts are implemented in each of them, I gained a broader view of the strengths and weaknesses of each. This
helped the team in identifying and selecting the right framework for each of our projects.

As a consultant, I am expected to be able to walk into a new customer, join a new project, and hit the ground running.
This book gave me all the knowledge I needed to do exactly that.

- jack_miller

Customers Also Bought