Book description
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 prototypal 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.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- A Note for the Implementers
- Introduction
- Chapter 1 : Creating Objects
- Chapter 2 : Object Programming
- Chapter 3 : Inheritance Theory
- Chapter 4 : Inheritance Practice
- Chapter 5 : On OOP Principles
- Chapter 6 : More Ex Nihilo Objects
- Chapter 7 : Inheritance Alternatives
- Chapter 8 : Designing for JavaScript
- Chapter 9 : On Constructors
- Chapter 10 : Appendices
- Index
Product information
- Title: JavaScript Object Programming
- Author(s):
- Release date: December 2015
- Publisher(s): Apress
- ISBN: 9781484217870
You might also like
book
JavaScript : Object-Oriented Programming
Build sophisticated web applications by mastering the art of Object-Oriented Javascript About This Book Learn popular …
book
JavaScript Patterns
What's the best approach for developing an application with JavaScript? This book helps you answer that …
book
JavaScript
All of JavaScript's newest features, in depth, made easy to understand. JavaScript is a rapidly changing …
book
JavaScript Web Applications
Building rich JavaScript applications that bring a desktop experience to the Web requires moving state from …