Introduction to JavaScript. OOP in JavaScript презентация

OOP, What is it? Something about objects and classes Encapsulation Polymorphism Abstraction Inheritance

Слайд 1Lesson 1
Introduction to JavaScript. OOP in JavaScript
(or something like that)


Слайд 2OOP, What is it?
Something about objects and classes
Encapsulation
Polymorphism
Abstraction
Inheritance


Слайд 3Why do we need it?
Computer doesn’t care how elegant your code

is, people do.

Creating of models works better if you have right amount of right abstractions.

Any statement which may have only one meaning within its context can be used as a piece of program code.


Слайд 4More about programming paradigms
Imperative
Functional
Logic programming
Declarative


Слайд 5Web application in general
Runs in browser
Requires client-server communication
Interactivity
No complex computing


Слайд 6Let’s talk about JavaScript
No Classes
Everything but primitives is an object


Слайд 7JS Data Types


Слайд 8Aliases




Слайд 9First-class function



Слайд 10How to get a class


Слайд 11What about other OOP concepts?
Encapsulation


Слайд 13More about closure
(A Counter Dilemma)




Слайд 14Inheritance
prototype

Anything wrong with this?
“Mammal” is not a “class”


Слайд 15Use prototype properly





Слайд 16What is “this”?





Слайд 17"apply" and "call" methods



Слайд 18Software design pattern
They're not supposed to make your life more difficult


They're not a panacea


Слайд 19Types of patterns


Слайд 20Singleton


Слайд 22Mediator




Слайд 23Conclusions
Everything including functions is variable
Everything but primitives is object
Primitive variables are

variables object variables are aliases

Function called with new turns out to class constructor

prototype can be used for defining class methods and properties

Use closure for encapsulation

Don’t forget about context


Слайд 24Home work


Слайд 25Sergey Lozhechnikov
Web Developer Principal
s.lozhechnikov@astoundcommerce.com

Astound Commerce s.r.o.
Kosice, 2015
Thanks for the attention


Обратная связь

Если не удалось найти и скачать презентацию, Вы можете заказать его на нашем сайте. Мы постараемся найти нужный Вам материал и отправим по электронной почте. Не стесняйтесь обращаться к нам, если у вас возникли вопросы или пожелания:

Email: Нажмите что бы посмотреть 

Что такое ThePresentation.ru?

Это сайт презентаций, докладов, проектов, шаблонов в формате PowerPoint. Мы помогаем школьникам, студентам, учителям, преподавателям хранить и обмениваться учебными материалами с другими пользователями.


Для правообладателей

Яндекс.Метрика