• Complain

Cherny - Programming TypeScript: making your JavaScript applications scale

Here you can read online Cherny - Programming TypeScript: making your JavaScript applications scale full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Sebastopol;Calif, year: 2019, publisher: OReilly Media, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Cherny Programming TypeScript: making your JavaScript applications scale
  • Book:
    Programming TypeScript: making your JavaScript applications scale
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2019
  • City:
    Sebastopol;Calif
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Programming TypeScript: making your JavaScript applications scale: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Programming TypeScript: making your JavaScript applications scale" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

La 4me de couv. indique : Any programmer working with a dynamically typed language will tell you how hard it is to scale to more lines of code and more engineers. Thats why Facebook, Google, and Microsoft invented gradual static type layers for their dynamically typed JavaScript and Python code. This practical book shows you how one such type layer, TypeScript, is unique among them: it makes programming fun with its powerful static type system. If youre a programmer with intermediate JavaScript experience, author Boris Cherny will teach you how to master the TypeScript language. Youll understand how TypeScript can help you eliminate bugs in your code and enable you to scale your code across more engineers than you could before. In this book, youll: Start with the basics: Learn about TypeScripts different types and type operators, including what theyre for and how theyre used. Explore advanced topics: Understand TypeScripts sophisticated type system, including how to safely handle errors and build asynchronous programs. Dive in hands-on: Use TypeScript with your favorite frontend and backend frameworks, migrate your existing JavaScript project to TypeScript, and run your TypeScript application in production.

Cherny: author's other books


Who wrote Programming TypeScript: making your JavaScript applications scale? Find out the surname, the name of the author of the book and a list of all author's works by series.

Programming TypeScript: making your JavaScript applications scale — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Programming TypeScript: making your JavaScript applications scale" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Praise for Programming TypeScript

This is the right book to help you learn TypeScript in depth. Programming TypeScript shows all the benefits of using a type system on top of JavaScript and provides deep insight into how to master the language.

Minko Gechev, Engineer, Angular Team at Google

Programming TypeScript onboarded me to the TypeScript tooling and overall ecosystem quickly and efficiently. Every usage question I had was covered by concise, real-world examples. The Advanced Types chapter breaks down terminology I usually stumble over, and shows how to leverage TypeScript to create extremely safe code thats still pleasant to use.

Sean Grove, Cofounder of OneGraph

Boris has provided a comprehensive guide to TypeScript. Read this for the 10,000-foot view all the way back down to Earth, and then some.

Blake Embrey, Engineer at Opendoor, author of TypeScript Node and Typings

Programming TypeScript

by Boris Cherny

Copyright 2019 Boris Cherny. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

Development Editor: Angela Rufino

Indexer: Ellen Troutman

Acquisitions Editor: Jennifer Pollock

Interior Designer: David Futato

Production Editor: Katherine Tozer

Cover Designer: Karen Montgomery

Copyeditor: Rachel Head

Illustrator: Rebecca Demarest

Proofreader: Charles Roumeliotis

  • May 2019: First Edition
Revision History for the First Edition
  • 2019-04-18: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781492037651 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. Programming TypeScript, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

The views expressed in this work are those of the author, and do not represent the publishers views. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-492-03765-1

[LSI]

Dedication

To Sasha and Michael, who might also fall in love with types, someday.

Preface

This is a book for programmers of all walks: professional JavaScript engineers, C# people, Java sympathizers, Python lovers, Ruby aficionados, Haskell nerds. Whatever language(s) you write in, so long as you have some experience programming and know the basics of functions, variables, classes, and errors, this book is for you. Some experience with JavaScript, including a basic knowledge of the Document Object Model (DOM) and the network, will help you along the waywhile we dont dive deep into these concepts, they are a wellspring of excellent examples, and if youre not familiar with them the examples might not make as much sense.

Regardless of what programming languages youve used in the past, what unites all of us is our shared experience of tracking down exceptions, tracing through code line by line to figure out what went wrong and how we can fix it. This is the experience that TypeScript helps prevent by examining your code automatically and pointing out the mistakes you may have missed.

Its OK if you havent worked with a statically typed language before. Ill teach you about types and how to use them effectively to make your programs crash less, document your code better, and scale your applications across more users, engineers, and servers. Ill try to avoid big words when I can, and explain ideas in a way thats intuitive, memorable, and practical, using lots of examples along the way to help keep things concrete.

Thats the thing about TypeScript: unlike a lot of other typed languages, TypeScript is intensely practical. It invents completely new concepts so you can speak more concisely and precisely, letting you write applications in a way thats fun, modern, and safe.

How This Book Is Organized

This book has two aims: to give you a deep understanding of how the TypeScript language works (theory) and provide bucketfuls of pragmatic advice about how to write production TypeScript code (practice).

Because TypeScript is such a practical language, theory quickly turns to practice, and most of this book ends up being a mix of the two, with the first couple of chapters almost entirely theory, and the last few almost completely practice.

Ill start with the basics of what compilers, typecheckers, and types are. Ill then give a broad overview of the different types and type operators in TypeScript, what theyre for, and how you use them. Using what weve learned, Ill cover some advanced topics like TypeScripts most sophisticated type system features, error handling, and asynchronous programming. Finally, Ill wrap up with how to use TypeScript with your favorite frameworks (frontend and backend), migrating your existing JavaScript project to TypeScript, and running your TypeScript application in production.

Most chapters come with a set of exercises at the end. Try to do these yourselftheyll give you a deeper intuition for what we cover than just reading would. Answers for chapter exercises are available online, at https://github.com/bcherny/programming-typescript-answers.

Style

Throughout this book, I tried to stick to a single code style. Some aspects of this style are deeply personalfor example:

  • I only use semicolons when necessary.

  • I indent with two spaces.

  • I use short variable names like a, f, or _ where the program is a quick snippet, or where the structure of the program is more important than the details.

Some aspects of the code style, however, are things that I think you should do too. A few of these are:

  • You should use the latest JavaScript syntax and features (the latest JavaScript version is usually just called esnext). This will keep your code in line with the latest standards, improving interoperability and Googleability, and it can help reduce ramp-up time for new hires. It also lets you take advantage of powerful, modern JavaScript features like arrow functions, promises, and generators.

  • You should keep your data structures immutable with spreads (...) most of the time.

  • You should make sure everything has a type, inferred when possible. Be careful not to abuse explicit types; this will help keep your code clear and terse, and improve safety by surfacing incorrect types rather than bandaiding over them.

  • You should keep your code reusable and generic. Polymorphism (see ) is your best friend.

Of course, these ideas are hardly new. But TypeScript works especially well when you stick to them. TypeScripts built-in downlevel compiler, support for read-only types, powerful type inference, deep support for polymorphism, and completely structural type system encourage good coding style, while the language remains incredibly expressive and true to the underlying JavaScript.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Programming TypeScript: making your JavaScript applications scale»

Look at similar books to Programming TypeScript: making your JavaScript applications scale. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Programming TypeScript: making your JavaScript applications scale»

Discussion, reviews of the book Programming TypeScript: making your JavaScript applications scale and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.