What should I know about GIT?

Содержание

Слайд 2

What should I know about GIT?

Source control
Branching
Merge
Rebase
Cherry pick
Stash
Tag
Etc.

What should I know about GIT? Source control Branching Merge Rebase Cherry pick Stash Tag Etc.

Слайд 4

Why I should use Typescript?

Less bugs
Development performance
Features: type checking, autocompletion, source documentation

Why I should use Typescript? Less bugs Development performance Features: type checking,
and etc.
Responsive support from the Typescript team
Starts and ends with JavaScript
Beautiful and elegant
Etc.

Слайд 5

Getting started

https://nodejs.org/en/
npm install -g typescript (or install locally in dev dependencies)
tsc helloworld.ts

Getting started https://nodejs.org/en/ npm install -g typescript (or install locally in dev dependencies) tsc helloworld.ts

Слайд 6

How to compile

tsc helloworld.ts

tsconfig.json

How to compile tsc helloworld.ts tsconfig.json

Слайд 7

Settings

target
removeComments
outDir
sourceMap
outFile
files
Etc.

Settings target removeComments outDir sourceMap outFile files Etc.

Слайд 8

Variables

Use ES6 let and const to declare variables in Typescript.
let user: User

Variables Use ES6 let and const to declare variables in Typescript. let
= new User();
const cardNumber: string = “**** **** **** 1111”;

Слайд 9

Types

boolean
number
String
Object
Array
Tuple
enum
null
undefined
void
never
any

Types boolean number String Object Array Tuple enum null undefined void never any

Слайд 10

Type declaration

declare type primitive = number | string | boolean| null |

Type declaration declare type primitive = number | string | boolean| null | undefined;
undefined;

Слайд 11

Type conversion

variable;
as

Type conversion variable; as

Слайд 12

What should I know about classes in TS?

fields
methods
constructor
static fields and methods
private/public/protected
get/set
readonly

What should I know about classes in TS? fields methods constructor static

Слайд 13

Inheritance and abstract classes

basic inheritance mechanism in general the same as in

Inheritance and abstract classes basic inheritance mechanism in general the same as
ES6
abstract class can’t be instantiated
but more concrete implementation can be
example: abstract Figure, concrete Square and Circle.

Слайд 14

What should I know about interfaces in TS?

syntax
optional and readonly properties
implementation
Interface inheritance
Function

What should I know about interfaces in TS? syntax optional and readonly
and array interfaces

Слайд 15

Generics

Use generics when something should work with any data types.
You can use

Generics Use generics when something should work with any data types. You
them with functions, classes, interfaces.
Example: promisify, Map class.

Слайд 16

Namespaces

Namespaces contains a group of classes, functions, interfaces, variables, other namespaces, etc.
Use

Namespaces Namespaces contains a group of classes, functions, interfaces, variables, other namespaces,
namespace to declare namespaces.
Use exports for using entities in other namespaces.

Слайд 17

Modules

TS support the following modules:
AMD (Asynchronys Module Defenition)
CommonJS
UMD (Universal Module Defenition)
System
ES 2015
Use

Modules TS support the following modules: AMD (Asynchronys Module Defenition) CommonJS UMD
export/import features.
Example: User and UserService

Слайд 18

Decorators

Allow to add metadata to classes or their members for changing their

Decorators Allow to add metadata to classes or their members for changing
behavior without changing their code.
Decorator – function, which can apply on class, field, methods, getter, setter, parameters, etc.
Set experimentalDecorators: true for using decorators.
Имя файла: What-should-I-know-about-GIT?.pptx
Количество просмотров: 28
Количество скачиваний: 0