Автор: Martin Rinehart Название: javascript Object Programming Издательство: Apress Год: 2015 ISBN: 9781484217863 Язык: English Формат: pdf Размер: 10 mb Страниц: 109
The text shows how object programming (OP) opens a new world of design possibilities that go far beyond inheritance.
This book will help the intermediate javascript programmer learn to use both types of inheritance. For classical inheritance, it is accompanied by a substantial online system (a windowing UI library) that shows classical inheritance at its best. The same system shows how OP "capabilities" can eliminate much of the need for inheritance.
For experienced javascript programmers, this book shows why most of the old views of javascript's inheritance have not done it justice. javascript classes inherit from javascript's prototypes, a fact that makes javascript's prototypes, when used correctly, functional equivalents to C++ classes (not to prototypes in true prototypical languages, like Self).
javascript's object programming (not inheritance) is what separates it from classical OOP languages like C++ and Java. Most important, basing inheritance on javascript's prototypal chain is possible, but is not the best choice for prototypal inheritance or classical inheritance.
The Principles of Object-Oriented JavaScript Автор: Nicholas C. Zakas Название: The Principles of Object-Oriented javascript Издательство: No Starch Press Год: 2014 ISBN: 9781593275402...