Programming TypeScript

Making Your JavaScript Applications Scale

Paperback Engels 2019 9781492037651
€ 66,69
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

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. That’s 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 you’re a programmer with intermediate JavaScript experience, author Boris Cherny will teach you how to master the TypeScript language. You’ll 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, you’ll:
- Start with the basics: Learn about TypeScript’s different types and type operators, including what they’re for and how they’re used
- Explore advanced topics: Understand TypeScript’s 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

Specificaties

ISBN13:9781492037651
Taal:Engels
Bindwijze:paperback
Aantal pagina's:250
Uitgever:O'Reilly
Verschijningsdatum:10-5-2019
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Over Boris Cherny

Boris Cherny is a Software Engineer at Facebook and the organizer of the San Francisco TypeScript Meetup. A longtime JavaScript programmer and functional programming evangelist Boris has started several startups, and led engineering teams in adtech and venture capital. In his free time, you can find him working on open source on Github.

Andere boeken door Boris Cherny

Inhoudsopgave

Preface
How This Book Is Organized
Style
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments

1. Introduction

2. TypeScript: A 10_000 Foot View
The Compiler
The Type System
TypeScript Versus JavaScript
Code Editor Setup
tsconfig.json
tslint.json
index.ts
Exercises

3. All About Types
Talking About Types
The ABCs of Types
any
unknown
boolean
number
bigint
string
symbol
Objects
Intermission: Type Aliases, Unions, and Intersections
Arrays
Tuples
null, undefined, void, and never
Enums
Summary
Exercises

4. Functions
Declaring and Invoking Functions
Optional and Default Parameters
Rest Parameters
call, apply, and bind
Typing this
Generator Functions
Iterators
Call Signatures
Contextual Typing
Overloaded Function Types
Polymorphism
When Are Generics Bound?
Where Can You Declare Generics?
Generic Type Inference
Generic Type Aliases
Bounded Polymorphism
Generic Type Defaults
Type-Driven Development
Summary
Exercises
Afgekapt op 61 regels

Managementboek Top 100

€ 66,69
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Programming TypeScript