Principles of Object-Oriented Programming in JavaScript

0
(0)

Principles of Object-Oriented Programming in JavaScript
 

  • Author:Nicholas C. Zakas
  • Length: 93 pages
  • Edition: 1
  • Publisher: Leanpub
  • Publication Date: 2014-06-18
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    If you’re coming from a more traditional object-oriented language such as C++ or Java, JavaScript might seem like it’s not object-oriented at all. After all, JavaScript has no concept of classes, and you don’t even need to define any objects in order to write code. JavaScript can look just as much like C as it can an object-oriented language depending on how you decide to write it. But don’t be fooled, JavaScript is an incredibly powerful and expressive object-oriented language that puts many design decisions in the hands of you, the developer.

    This book is an exploration of the object-oriented nature of JavaScript. It is not specific to a particular JavaScript environment, so it’s equally useful for web developers and Node.js developers. The book includes information about ECMAScript 5 and its new capabilities that have changed how you can work with objects in JavaScript.

    What you’ll learn:

    • The differences between primitive and reference values
    • What makes JavaScript functions so unique
    • The various ways of creating an object
    • The difference between data properties and accessor properties using ECMAScript 5
    • How to define your own constructors
    • How to work with and understand prototypes
    • Various inheritance patterns for types and objects
    • How to create private and privileged object members
    • How to prevent modification of objects using ECMAScript 5 functionality

    Table of Contents

    Chapter 1. Primitive and Reference Types
    Chapter 2. Functions
    Chapter 3. Understanding Objects
    Chapter 4. Contructors and Prototypes
    Chapter 5. Inheritance
    Chapter 6. Object Patterns

    中文:

    书名:Principles of Object-Oriented Programming in JavaScript

    如果您来自一种更传统的面向对象语言,如C++或Java,那么它可能看起来根本不是面向对象的。毕竟,JavaScript没有类的概念,您甚至不需要定义任何对象来编写代码。根据您决定如何编写,JavaScript看起来既像C语言,也像面向对象语言。但不要被愚弄了,JavaScript是一种功能强大、表现力极强的面向对象语言,它将许多设计决定权交到了开发人员手中。

    这本书是对JavaScript面向对象本质的探索。它并不特定于特定的JavaScript环境,因此对于Web开发人员和Node.js开发人员同样有用。这本书包含了有关ECMAScript 5及其新功能的信息,这些新功能改变了您在JavaScript中处理对象的方式。

    What you’ll learn:

    • 原始值和参考值之间的差异
    • 是什么让JavaScript函数如此独特
    • The various ways of creating an object
    • 使用ECMASIPT 5的数据属性和访问器属性之间的差异
    • 如何定义您自己的构造函数
    • 如何使用和理解原型
    • 类型和对象的各种继承模式
    • 如何创建私有对象成员和特权对象成员
    • 如何防止使用ECMAScript5功能修改对象

    Table of Contents

    第1章.基元类型和引用类型
    Chapter 2. Functions
    第三章了解对象
    第四章:建筑商和原型
    第五章继承
    第6章.对象模式

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

    点击星号评分!

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

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

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册