• Complain

it-ebooks - Book on TypeScript

Here you can read online it-ebooks - Book on TypeScript full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: iBooker it-ebooks, genre: Computer. 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.

it-ebooks Book on TypeScript
  • Book:
    Book on TypeScript
  • Author:
  • Publisher:
    iBooker it-ebooks
  • Genre:
  • Year:
    2018
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Book on TypeScript: summary, description and annotation

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

it-ebooks: author's other books


Who wrote Book on TypeScript? Find out the surname, the name of the author of the book and a list of all author's works by series.

Book on TypeScript — 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 "Book on TypeScript" 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
Table of Contents
  1. 1.1
  2. 1.2
  3. 1.3
  4. 1.4
  5. 1.5
  6. 1.6
  7. 1.7
  8. 1.8
  9. 1.9
  10. 1.10
  11. 1.11
  12. 1.12
Chapter 1: Road Map
The Road Map

This book follows familiar conventions. It addresses a few house keeping topics (like this very chapter) before properly introducing the language. That proper introduction starts off with simple topics (variables and data types) and works its way up to more complicated areas towards the end, such as generics.

The Gloss-Overs

This book won't go into any great detail about some topics. It's mostly concerned with the TypeScript language. As a result, the book does not provide step-by-step instructions for things like downloading TypeScript, installing it or configuring it. This and similar topics are covered in much better detail elsewhere. The final chapter, "Where Do I Go From Here?" points to some useful online resources focusing on these things.

Practical Considerations

This chapter covers the TypeScript development experience at a higher level. It answers questions such as:

  • How do I write TypeScript applications in the first place?
  • How does TypeScript run in the browser? (It doesn't, actually - it "transpiles" to JavaScript).
  • How do I debug TypeScript apps?

The goal here to help ground you in the TypeScript "world" and describe the big picture of what's happens as you build TypeScript solutions. As you'll see, it's not very complicated.

Introducing Types

TypeScript offers static types. You don't need to use them, but they are pretty helpful. This chapter starts off describing primitives (integers, strings and the like). It shows how declaring a variable's type helps good integrated development environments (IDEs) provide useful edit-time and compile-time feedback. We'll also take an opportunity to try and knock the TypeScript doubters off their perch with the strong typing goodness :).

Types in Depth

The real world is complicated with complex data structures. TypeScript offers up the notion of interfaces to help us describe and manage them. This chapter introduces interfaces as a way to describe them starting with a flat object and moving on to a more complex JSON formatted response from a REST service.

TypeScript interfaces look and feel quite similar to interfaces in C# and Java. Generally speaking, interfaces are one of the backbones for many common and important design patterns and principles (think .

TypeScript offers several other ways to describe data. The chapter covers a few the most useful ones. These include:

  • Enumerations: Assigning a label to a fixed value.
  • Union Types: Define a new custom type that can hold two or more different types of values (including hard coded strings).

TypeScript provides other types, such as intersection types. This book takes a pass on those types for now - they feel like edge cases and although interesting and vitally useful when you can, you know, use them, most of us don't live on the edge.

Template Strings

Eliminate cumbersome string manipulation through the magic of template strings!

Functions

A detailed look into how TypeScript enhances standard JavaScript functions, including typed parameters, void return values, default function parameter values and more.

In addition, learn about Arrow Functions, often called "anonymous" or "lambda" functions.

Introducing Classes and Classes in Depth

TypeScript's static typing is, as they say, the bee's knees. Classes are the honey and these two chapters cover them pretty thoroughly:

  • Class syntax
  • Classes and interfaces
  • Inheritance
  • Abstract classes
  • Static class members

Classes are an important building block for object oriented programming and TypeScript provides some solid support here.

Generics

Learn TypeScripts' version of generics as you know them from C# and Java.

Continue Learning

A big long list of links that will hopefully lead you to TypeScript Greatness.

1. Isn't this always the case? No specific thing in this post-modern JavaScript world of ours is particularly complicated. It surely adds up though. 2. If you or someone you know is a TypeScript doubter, have a look at this chapter and its videos. Invest fifteen minutes or so here and then make up your mind about whether you want to invest more time after that. 3. As they say in the Old Country, "Come for the static typing, stay for the interfaces."
Chapter 2: The Gloss Overs
The Gloss-Overs

This book focuses on what consider to be the "main" bits of the TypeScript language. This narrows its scope and as a result, several topics that you might think a table of contents informed by common sense would include are not, in fact, included. To wit:

- History of TypeScript Its an interesting topic IDEs deployment processes - photo 1
- History of TypeScript: It's an interesting topic.
  • IDEs, deployment processes, webpack and task runners: This stuff is changing almost all the time, almost on a weekly basis. If I were to go all in, recommending some particular "TypeScript starter", it would be overtaken by newer, more streamlined solutions by the time you read my recommendation. In addition, the various starters you find on the interwebs tend to be framework-dependent. One family of starter projects supports Angular, another React, etc. This book isn't about those frameworks.

Beyond those non-language features, the book also ignores what I consider to be more advanced and/or situational topics. These are:

  • Decorators. Decorators allow you to enhance the functionality a TypeScript artifact, such as a class or property. This assignment is done in a declarative manner and can enhance the targeted artifact without the knowledge or consent of the artifact. It's fairly meta, I know :). They are very powerful and may become a common thing for people to do over time. However, I think they are too advanced for my target audience. In the chapter, Continue Learning, I point out a few great blog posts and github projects that showcase them.

  • Modules: Modules are not particularly complicated, but they mostly support bundling and other tooling (such as webpack). I'm on the fence as to whether I include a chapter on modules even as I write this. For now, I won't and I will refer you to good overviews of modules in the Continue Learning chapter.

  • Mixins, intersection types and the like: I cover what I consider to be the "core" language features. As with decorators, some topics are fairly advanced while also being of use in a fairly narrow band of business applications. I didn't want to throw too many concepts out there. As a result, I leave these out of the book and invite you to learn about them from other sources.

That's enough on what's not covered. Let's move on to first big topic, how the heck does TypeScript work in the first place?

1. Of course, we don't necessarily share the same sense of what's common. If you don't like mine, write your own book :). Or, suggest I add more content via a github issue or email me directly. The intro chapter provides links to both of these options. 2. Did you know that TypeScript is over five years old? In the U.S., President Barack Obama was only just about to get re-elected to office when Microsoft released this language. Coincidence? Who knows? (Photo of Barack Obama from Peter Prodoehl @
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Book on TypeScript»

Look at similar books to Book on TypeScript. 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 «Book on TypeScript»

Discussion, reviews of the book Book on TypeScript 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.