The Principles of Object-Oriented JavaScript
Publisher: No Starch Press
Final Release Date: February 2014
Pages: 120

If you've used a more traditional object-oriented language, such as C++ or Java, JavaScript probably doesn't seem object-oriented at all. It has no concept of classes, and you don't even need to define any objects in order to write code. But don't be fooled—JavaScript is an incredibly powerful and expressive object-oriented language that puts many design decisions right into your hands.

In The Principles of Object-Oriented JavaScript, Nicholas C. Zakas thoroughly explores JavaScript's object-oriented nature, revealing the language's unique implementation of inheritance and other key characteristics. You'll learn:

  • The difference between primitive and reference values
  • What makes JavaScript functions so unique
  • The various ways to create objects
  • How to define your own constructors
  • How to work with and understand prototypes
  • Inheritance patterns for types and objects


The Principles of Object-Oriented JavaScript will leave even experienced developers with a deeper understanding of JavaScript. Unlock the secrets behind how objects work in JavaScript so you can write clearer, more flexible, and more efficient code.
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyThe Principles of Object-Oriented JavaScript
 
4.5

(based on 15 reviews)

Ratings Distribution

  • 5 Stars

     

    (8)

  • 4 Stars

     

    (6)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

93%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (13)
  • Concise (12)
  • Well-written (10)
  • Accurate (8)
  • Helpful examples (8)

Cons

    Best Uses

    • Intermediate (14)
    • Novice (6)
    • Expert (5)
    • Student (3)
      • Reviewer Profile:
      • Developer (13)

    Reviewed by 15 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    4.0

    Great book for its target audience

    By Ken H

    from Australia

    About Me Developer

    Verified Reviewer

    Pros

    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly The Principles of Object-Oriented JavaScript:

      I can see this book being an extremely useful resource for its target audience (those coming to Javascript from other object-oriented languages, or novice Javascript developers), with understandable code samples and a well-written explanatory style.

      For the intermediate Javascript developer it could still be a decent reference for some of the pitfalls and details of OO programming in Javascript, and could also provide some alternative design patterns that may be a little less common, but definitely have their uses.

      For me it was a fairly easy read with most of the concepts being quite familiar, but there were a few little ES5-specific gems and a couple of helpful design patterns that I will be using from now on.

       
      5.0

      AMAZING Book!

      By The Gayngler

      from New York, NY

      About Me Developer

      Verified Reviewer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Novice
        • Student

        Comments about oreilly The Principles of Object-Oriented JavaScript:

        While there are many many posts on Javascript and Object-Oriented Javascript all over the internet, I have never found a book that felt as concise and as through as this book is. I think many developers even experienced Java developers looking to get a better understanding of Javascript can really use this book to take their Javascript to the next level.

        I would probably say that this book really serves as somewhat of a foundation for what will come in the future as it relates to Javascript.

        Every chapter I felt like I was learning something I had not realized when working with Javascript before. Understanding primative types and reference types in Javascript is critical to understand how objects behave in Javascript and in other programming languages. The author starts the book out by explaining the difference between the two before getting into the details of functions and objects. You will learn about proper methods of detecting properties, instantiating built in types, call and apply.

        I really enjoyed the fact that our author goes throught the trouble of explaining to us exactly what is going on behind the scenes. This gives developers more control over the code and how they are writing their code. He goes and explains this and the bind method.

        Nicholas explains ECMA Script 5's built in Object functions by sprinkling in examples rather than going all dictionary style on us as many developer books typically like to do. People read books so they actually understand what they are doing better than they would if they were reading straight up documentation dictionary style. Explanation through example also gives us a tiny preview of how we might solve problems right now.

        Chapter 5…. OH GAWD!… Chapter 5 and well really the whole book should be required reading for developers. I was hesitating on wether or not to give this book a 5 out of 5 stars. I went ahead and decided to give this book the full 5 because I don't have a recommendation as to how I might improve this book.

        For all the praise Douglas Crockford's book 'Javascript: The Good Parts' gets, this book should be getting at least as much praise.

         
        4.0

        Good book on OOP

        By DanD

        from San Jose, ca

        About Me Developer, Maker

        Verified Buyer

        Pros

        • Concise
        • Easy to understand

        Cons

          Best Uses

          • Intermediate

          Comments about oreilly The Principles of Object-Oriented JavaScript:

          This is a good book on OOP, and assumes a good knowledge of javascript. No Javascript training here, just oop and how it pertains to Javascript.

           
          5.0

          As the title says, solid intro to js oop

          By jeff

          from seattle, wa

          About Me Designer, Developer

          Verified Buyer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly The Principles of Object-Oriented JavaScript:

            I use javascript professionally once in a blue moon to create mostly simple GUIs for backend systems. I wanted to become more comfortable with the concept of the prototype and oop in js in general. This book made it happen.

             
            5.0

            Another brilliant Zackas' book

            By Hogart

            from Moscow, Russia

            About Me Developer

            Verified Reviewer

            Pros

            • Accurate
            • Concise
            • Easy to understand
            • Well-written

            Cons

              Best Uses

              • Expert
              • Intermediate
              • Novice

              Comments about oreilly The Principles of Object-Oriented JavaScript:

              Very comprehensive and thorough, covering problem from every angle book. The only thing probably missing — more real-life examples.

              (0 of 1 customers found this review helpful)

               
              4.0

              as good as zakas

              By lascar

              from madrid

              About Me Developer

              Verified Buyer

              Pros

              • Accurate
              • Concise
              • Easy to understand
              • Well-written

              Cons

                Best Uses

                • Intermediate
                • Novice
                • Student

                Comments about oreilly The Principles of Object-Oriented JavaScript:

                the book is not briant, it's useful because the author resumes clearly what's others seem to consider too trivial to explain

                 
                5.0

                Very detailed and easy to follow

                By brycemcd

                from New York, NY

                About Me Developer

                Verified Buyer

                Pros

                • Accurate
                • Concise
                • Easy to understand
                • Helpful examples
                • Well-written

                Cons

                  Best Uses

                  • Expert
                  • Intermediate

                  Comments about oreilly The Principles of Object-Oriented JavaScript:

                  I've been out of js for a few years and was having a bumpy time getting back in. This book explains the fundamentals very well and got me back to producing good production code quickly.

                  (2 of 2 customers found this review helpful)

                   
                  5.0

                  This book will make you a better javascr

                  By superzamp

                  from France

                  About Me Developer

                  Verified Reviewer

                  Pros

                  • Accurate
                  • Concise
                  • Easy to understand
                  • Helpful examples
                  • Well-written

                  Cons

                    Best Uses

                    • Expert
                    • Intermediate

                    Comments about oreilly The Principles of Object-Oriented JavaScript:

                    This book is a deep dive into Javascript internals. You'll learn the secrets and quirks of the language and to see how to use them at your advantage.

                    (1 of 6 customers found this review helpful)

                     
                    3.0

                    Bad Start for Beginners

                    By Andy

                    from Seattle, WA

                    About Me Student

                    Verified Buyer

                    Pros

                      Cons

                      • Difficult to understand

                      Best Uses

                      • Intermediate

                      Comments about oreilly The Principles of Object-Oriented JavaScript:

                      I've been learning Java for six months and thought this would be a good resource for learning JavaScript from 0. I didn't find this book helpful at my level. Maybe if I had had years of experience in programming instead of months, then jumping into the deep end in JavaScript would have been more pleasant. For me it was a slog through concepts I could understand but not put to practical use or even remember after putting the book down, followed by lists of functions/methods presented like API documentation. I'll only come back to this book after learning JS from another resource.

                      I would only recommend this for programmers with a good knowledge base of JavaScript or significant experience in another language.

                      (0 of 2 customers found this review helpful)

                       
                      4.0

                      very interesting book

                      By SalvoS

                      from Milan, Italy

                      Verified Buyer

                      Comments about oreilly The Principles of Object-Oriented JavaScript:

                      Very well organized book.

                      Displaying reviews 1-10

                      Back to top

                      Previous | Next »

                       
                      Buy 2 Get 1 Free Free Shipping Guarantee
                      Buying Options
                      Immediate Access - Go Digital what's this?
                      Ebook: $19.95
                      Formats:  ePub, Mobi, PDF
                      Print & Ebook: $27.45
                      Print: $24.95