JavaScript Object Programming

0
(0)

JavaScript Object Programming
 

  • Author:Martin Rinehart
  • Length: 109 pages
  • Edition: 1st ed. 2015
  • Publisher: Apress
  • Publication Date: 2015-12-25
  • ISBN-10: 1484217861
  • ISBN-13: 9781484217863
  • Sales Rank: #4487307 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


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

    Table of Contents

    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

    中文:

    书名:Java对象编程

    这本简短的手册解释了对象模型、继承、经典和原型的优势,并展示了如何在JavaScript中实现这些概念。它还展示了对象编程(OP)如何打开了一个远远超出继承的设计可能性的新世界。

    这本书将帮助中级的JavaScript程序员学习使用这两种类型的继承。对于经典继承,它伴随着一个实质性的在线系统(一个窗口UI库),它以最好的方式展示了经典继承。相同的系统显示了OP&8220;功能如何消除对继承的大部分需求。

    对于有经验的Java程序员来说,这本书说明了为什么大多数旧有的关于JavaScript继承的观点都不能很好地说明这一点。所有的JavaScript类都是从JavaScript的原型继承而来的,这一事实使得如果使用得当,JavaScript的原型在功能上等同于C++类(而不是真正的原型语言中的原型,比如Self)。

    使它有别于C++和Java等经典面向对象语言的是它的对象编程(而不是继承)。最重要的是,基于原型链的继承是可能的,但不是原型继承或经典继承的最佳选择。

    你会学到什么?

    • 什么是对象、JavaScript对象和对象编程
    • 什么是以及如何使用继承和JavaScript继承以及继承替代方案
    • How to design for JavaScript
    • 什么是以及如何在Java中使用面向对象原则
    • 如何将构造函数与JavaScript等一起使用

    观众

    本书面向中级和高级的JavaScript和Web开发程序员。然而,任何程序员都会理解这些概念,任何Java程序员都应该理解本书中的所有概念。在代码中,有一些讨论的概念的示例。

    目录表

    Chapter 1: Creating Objects
    第2章:对象编程
    第三章:传承理论
    第四章:继承实践
    第五章:面向对象程序设计原则
    第6章:更多Ex NiHilo对象
    Chapter 7: Inheritance Alternatives
    Chapter 8: Designing for JavaScript
    Chapter 9: On Constructors
    第十章:附录

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册