Authors:
- A compact guide useful for intermediate and advanced JavaScript programmers and web developers
- A unique offering full of inheritance and inheritance alternatives for JavaScript programmers
- Author of over a dozen books on programming
Buy it now
Buying options
Tax calculation will be finalised at checkout
Other ways to access
This is a preview of subscription content, log in via an institution to check for access.
Table of contents (10 chapters)
-
Front Matter
-
Back Matter
About this book
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 Learn
- What are objects, JavaScript objects and object programming
- What is and how to use inheritance and JavaScript inheritance as well as inheritance alternatives
- How to design for JavaScript
- What are and how to use OO principles in JavaScript
- How to use Constructors with JavaScript and more
Audience
This 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.
Reviews
“It promises to briefly explains the advantages of Object model and to show how these concept can be implemented in JavaScript. And it does it! … the book starts with creating objects and explaining the two distinct models of JS objects. Then it goes into manipulation of objects, inheritance theory and practice, oop principles, etc. Pretty interesting, if you are a JS professional. There is enough code amongst the examples and each chapter finishes with a small summary.” (Vitosh Academy, vitoshacademy.com, June, 2016)
About the author
Bibliographic Information
Book Title: JavaScript Object Programming
Authors: Martin Rinehart
DOI: https://doi.org/10.1007/978-1-4842-1787-0
Publisher: Apress Berkeley, CA
eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)
Copyright Information: Martin Rinehart 2015
Softcover ISBN: 978-1-4842-1786-3Published: 25 December 2015
eBook ISBN: 978-1-4842-1787-0Published: 30 December 2015
Edition Number: 1
Number of Pages: XIX, 109
Number of Illustrations: 14 b/w illustrations
Topics: Web Development, Programming Languages, Compilers, Interpreters, Programming Techniques