JavaScript Object Programming 封面

JavaScript Object Programming

作 者:
Martin Rinehart
日 期:
2014年12月
ISBN:
1484217861

简介

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 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

下载

扫码关注『极客精神』公众号

公众号:极客精神

请在公众号『极客精神』发送消息 bookist.cc 获取提取码

消息“bookist.cc”不区分大小写。提取码有效期为一个月左右,输入后会自动存储在本地,下次无需重复输入。