TypeScript Blueprints
eBook - ePub

TypeScript Blueprints

Ivo Gabe de Wolff

Share book
  1. 288 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

TypeScript Blueprints

Ivo Gabe de Wolff

Book details
Book preview
Table of contents
Citations

About This Book

Build exciting end-to-end applications with TypeScript

About This Book

  • This book will help you whether you're a beginner or an expert
  • Complete and complex projects provide codes that are ready and solutions for start-ups and enterprise developers
  • The book will showcase the power and depth of TypeScript when it comes to high performance and scalability

Who This Book Is For

This book was written for web developers who wish to make the most of TypeScript and build fun projects. You should be familiar with the fundamentals of JavaScript

What You Will Learn

  • Build quirky and fun projects from scratch while exploring widely applicable practices and techniques
  • Use TypeScript with a range of different technologies such as Angular 2 and React and write cross-platform applications
  • Migrate JavaScript codebases to TypeScript to improve your workflow
  • Write maintainable and reusable code that is helpful in the world of programming revolving around features and bugs
  • Using System.JS and Webpack to load scripts and their dependencies.
  • Developing highly performance server-side applications to run within Node Js.
  • Reviewing high performant Node.js patterns and manage garbage collection.

In Detail

TypeScript is the future of JavaScript. Having been designed for the development of large applications, it is being widely incorporated in popular projects such as Angular JS 2.0. Adopting TypeScript results in more robust software, while still being deployable in apps where regular JavaScript would run.

Scale and performance lie at the heart of the projects built in our book. The lessons learned throughout this book will arm you with everything you need to build amazing projects. During the course of this book, you will learn how to build a complete Single Page Application with Angular 2 and create a popular mobile app using NativeScript.

Further on, you will build a classic Pac Man game in TypeScript. We will also help you migrate your legacy codebase project from JavaScript to TypeScript.

By the end of the book, you will have created a number of exciting projects and will be competent using TypeScript for your live projects.

Style and approach

The book focuses on building projects from scratch. These end-to-end projects will give you ready-to-implement solutions for your business scenario, showcasing the depth and robustness of TypeScript.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is TypeScript Blueprints an online PDF/ePUB?
Yes, you can access TypeScript Blueprints by Ivo Gabe de Wolff in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.

Information

Year
2016
ISBN
9781785887017

TypeScript Blueprints


TypeScript Blueprints

Copyright Š 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2016
Production reference: 1250716
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78588-701-7
www.packtpub.com

Credits

Authors
Ivo Gabe de Wolff
Copy Editor
Safis Editing
Reviewer
Matthew Hill
Project Coordinator
Ulhas Kambali
Commissioning Editor
Kunal Parikh
Proofreader
Safis Editing
Acquisition Editor
Divya Poojari
Indexer
Rekha Nair
Content Development Editor
Prashanth G
Graphics
Jason Monteiro
Technical Editor
Shivani K. Mistry
Production Coordinator
Aparna Bhagat

About the Author

Ivo Gabe de Wolff has been a freelance developer under the name of ivogabe since 2012 and he is studying mathematics and computing sciences at Utrecht University. When he was eleven he started programming in Game Maker. Currently, he uses TypeScript on a daily basis. Recently, he has used TypeScript in lots of different environments, including mobile apps, servers, and command-line tools. Now he mainly specializes in NodeJS programming.
Furthermore, he is the author of various open source projects, including gulp-typescript. You can find his projects on github.com/ivogabe . If you want to read more about TypeScript, JavaScript, gulp, or Functional Programming, you can take a look at his blog at dev.ivogabe.com .
It required a lot of work to compose this book. I could not have done this without the help of these people:
The team at Packt Publishing and the reviewers of this book, because of their precise feedback and hard work. This has helped me a lot to improve the quality of this book.
My fellow students, for brainstorming and helping on specific topics.
My teachers at Utrecht University, for giving inspiration and challenging me on various topics. I especially want to thank Jurriaan Hage for supervising my thesis.
Finally, my family, for their support and tips, even though they did not have knowledge on these topics. These people have helped me to to make the book as it now lies in front of you.

About the Reviewer

Matthew Hill is a British software developer with substantial experience in web application development. An established developer in the TypeScript and JavaScript spheres, he thoroughly enjoys working on open source projects and dipping into often esoteric technologies. Outside of programming, Matthew has a fervent interest in literature.
After graduating with a computer science degree, he started his career at Sky UK Ltd, where he developed video streaming applications, subsequently moving on to engineer single-page analytics applications at payments startup Velocity. Now he’s working at financial services leader Tradeweb, fleshing out their next-generation JavaScript-based trading platform.

www.PacktPub.com

For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
www.PacktPub.com
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why subscribe?

  • Fully searchable across every book published by Packt
  • Copy and paste, print, and bookmark content
  • On demand and accessible via a web browser

Free access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.

Preface

TypeScript allows developers to write readable and maintainable web applications. Editors can provide several tools to the developer, based on types and static analysis of the code. In this book, you will learn how you can use TypeScript to build clean web applications. You will learn how to use Angular 2 and React.
You will also learn how you can use TypeScript for servers, mobile apps, command-line tools, and games. We will build various servers, write a mobile app, rewrite Pac Man, and build Tic-Tac-Toe as a command-line application. You will also learn functional programming. This style of programming will improve your general code skills. You will see how this style can be used in TypeScript.

What this book covers

The book can be divided in two sections. The first section, chapters 1 to 4, describe how you can build standard application. These chapters introduce Angular 2 and React for web applications, NodeJS for servers and NativeScript for mobile apps. You should read chapters 1 to 3 in a sequence.
The second section, chapters 5 to 8, introduce more complex concepts. You will learn functional programming in chapters 5 to 7. The last chapter contains guidance to migrate a JavaScript codebase to TypeScript. You can read chapters 5 to 7 when you have not read chapters 1 to 4, though chapter 5 requires some knowledge of React.
Chapter 1, TypeScript 2.0 Fundamentals, will explain core principals to create (web) applications with TypeScript. If you have some basic knowledge of TypeScript 2.0 then you can skim over this chapter or use it as a reference while reading the other chapters. If you have not used TypeScript yet, then this chapter will teach you the fundamentals of TypeScript 2.0
Chapter 2, A Weather Forecast Widget with Angular 2, you will learn how you can build an application in Angular 2. The chapter introduces core principals of Angular and will use an online API as source for the weather forecast.
Chapter 3, Note-Taking App with a Server, we will build a server and client with Node and Angular for this application. You will see how code can be shared between the client and the server.
Chapter 4, Real-Time Chat, introduces React and websockets. Using these techniques, we will write the server and client of the chat application.
Chapter 5, Native QR Scanner App, after having written three web applications, we will now write a mobile app. You will learn how you can use NativeScript and its plugins to write a native app.
Chapter 6, Advanced Programming in TypeScript, covers more advanced features of TypeScript, including...

Table of contents