D
D
Denis Bogdanov2015-03-18 13:16:34
JavaScript
Denis Bogdanov, 2015-03-18 13:16:34

How to deal with typescript?

So, I have javascript at an intermediate level. By the way, this is the only programming language that I know. And for me, OOP implemented within the framework of javascript is native and the only one.
It is my job to learn typescript to write AngularJS, but the problem is that I do not understand the principles of real object-oriented programming languages. Those. I don't understand modules, interfaces, classes (more or less). When to use one or the other. In simple terms, I need programming patterns in typescript / AngularJS. Preferably in Russian.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2015-03-18
Protko @Fesor

Start with ES6. TypeScript is the same ES6/7 + goodies.
Actually, "classes" in TS or in ES6 are just sugar over the good old prototypes, so as not to write everything by hand through Object.create or Object.defineProperties

M
macintosh87, 2015-08-22
@macintosh87

TypeScript guide

G
gooddaytoday, 2016-08-27
@gooddaytoday

1. Try to start with the official guide . There is also Typescript documentation in Russian
2. Go to any book on design patterns. The most famous is the "Gang of Four" - Gang of four. Typescript is similar in syntax to C# and C++, and these books most often explain patterns based on classes in those languages.
3. If you want to delve into the development of enterprise-level applications (in terms of code volume), for which Typescript is just perfect, then read "Perfect Code" at the same time. It's just a brilliantly written guide to building high-end software that works in any language.
4. Take your old JS code and rewrite it in TS. After that, you will understand the benefits of TS inheritance, types, interfaces, and other goodies of TS. And learn to understand in what cases to apply, for example, interfaces, how to describe them, etc.
5. Go to the production code.

K
Konstantin Kitmanov, 2015-03-18
@k12th

To write under Angular 2, typescript is not required, the framework will be supplied in a compiled form.
Well, if you still need to contribute to the project itself, then start with the official guide .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question