Portada

JAVASCRIPT OBJECT PROGRAMMING IBD

APRESS
12 / 2015
9781484217863
Inglés

Sinopsis

This brief ábook explains the advantages of the object model, inheritance, both classical and prototypical, and shows how these concepts can be implemented in JavaScript. It also 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.What YouâÇÖll LearnWhat are objects, JavaScript objects and object programmingWhat is and how to use inheritance and JavaScript inheritance as well as inheritance alternativesHow to design for JavaScriptWhat are and how to use OO principles in JavaScriptHow to use Constructors with JavaScript and moreAudienceThis book is for both intermediate and advanced JavaScript and Web development programmers. However, any programmer will understand the concepts and any JavaScript programmer should understand all of the concepts in this book.áá The code there is shows examples of the concepts discussed.