Read javascript enlightenment by Cody Lindley Online


If you're an advanced beginner or intermediate JavaScript developer, "JavaScript Enlightenment" will solidify your understanding of the language--especially if you use a JavaScript library. In this concise book, JavaScript expert Cody Lindley (jQuery Cookbook) provides an accurate view of the language by examining its objects and supporting nuances.Libraries and frameworksIf you're an advanced beginner or intermediate JavaScript developer, "JavaScript Enlightenment" will solidify your understanding of the language--especially if you use a JavaScript library. In this concise book, JavaScript expert Cody Lindley (jQuery Cookbook) provides an accurate view of the language by examining its objects and supporting nuances.Libraries and frameworks help you build web applications quickly and efficiently, but when things go wrong or performance becomes an issue, knowing how and why they work is critical. If you're ready to go under the hood and get your hands dirty with JavaScript internals, this is your book. Get a short and digestible summary of ECMA-262, Edition 3, backed by real code you can run instantly Examine the creation of JavaScript objects Learn complex values, primitive values, scope, and inheritance Understand the importance of the head object Work with string, number, and Boolean objects and values Discover how to use the null value and the built-in math object Get into the details--beyond Mozilla's reference guide for JavaScript 1.5...

Title : javascript enlightenment
Author :
Rating :
ISBN : 12442420
Format Type : Hardback
Number of Pages : 190 Pages
Status : Available For Download
Last checked : 21 Minutes ago!

javascript enlightenment Reviews

  • Rob
    2019-04-27 03:13

    tl;dr: It's a 150 page essay on auto-boxing, full of dangerous code examples and anti-patterns and soft warnings to "not do what I just did", and some of the wording is not-wrong-but-not-quite-right, but hey there are some decent parts, I guess.Cody Lindley's JavaScript Enlightenment has an awesome title, and I wanted very much to like it--but I think I'm going to have a hard time recommending it to anyone. Maybe.Lindley states that the target audience for his book is (effectively) JavaScript dilettantes. In his is my hope that the material in this book will transform you from a JavaScript library user into a JavaScript developer.I interpretted that statement to mean that he is looking at the designers and the junior developers and the programmers coming at JavaScript from other languages--all the ones out there that have been using jQuery and/or ExtJS and/or Dojo with effectiveness (or at least competence) and now they're interested in digging into the guts of their favorite library, and perhaps even getting their heads around that thorny beast called JavaScript.This is an admirable goal, and one that I fully support. But when I got to the end, I scratched my head and wondered aloud: "Did I just finish a 150 page essay on auto-(un)boxing?"Understand objects and you will understand JavaScript.This is (more/less) Lindley's thesis statement for the rest of the book. From there, we have a lot of discussion and exposition about JavaScript's types, including quite a bit of examination into how the various primitives are coerced (behind the scenes) into their wrappers and then back down again. Lindley is right, this is important stuff to know if you want to have a deep understanding of JavaScript--but if you're at the point with JS libraries that you're taking a wrench to the plumbing, then you've probably already gotten this information on your own already. (Or else have learned how to look it up in MDN or MSDN or the WebPlatform Docs.) But my skepticism about this might be totally unfounded--perhaps there is a big audience for this kind of book. (Most of the ratings on Goodreads are 5 stars.)But... My biggest issue comes from what I perceive to be a... almost reckless or dangerous approach to presenting the material. What I mean by this is that while many of the code examples are technically correct, they are not idiomatic -- in other words, you wouldn't see code like that "in the wild." (Or shouldn't, anyway.) Sure, you can use the String constructor to create strings -- but this almost never offers you any advantage over simply creating a string with literals. (Most of the time it will hurt you, or confuse the typeof operator, or lead to some other language quirk that will catch a JavaScript novice off-guard.) Granted, to Lindley's credit, he states in numerous places in the text that "no one really does this" or "you should just use the primitive/literal form of this" -- but after also asserting (right at the very beginning) that the reader should pay more attention to the code... Well, I'm fearful that those same readers will pick up hard-to-break bad habits.And I think that's why my reaction was to think: "This is a dangerous book."[^1] As an author, you're in a powerful position as a teacher and role model--so if you're demonstrating "weird" code or error-prone techniques or calling things by the wrong name[^2], then you might wind up influencing a bunch of developers into those bad habits--even if you didn't mean to, even if you warned them against those exact methods.Perhaps I'm over-reacting a little bit, but believe strongly that these things matter."Comma-first" or abusing ASI is one thing... But using Number where you should be using parseInt is quite another.I had other criticisms as well (e.g., talking about "associative arrays" is always a sketchy proposition when your target audience is JS novices; e.g., making no mention of strict mode whatsoever[^3]) but they're really just pale variations on "the big one" above.So where do I land on this book? For all my critique of it, I am not sure that I have a recommendation that fills quite the same niche. Addy Osmani's Learning JavaScript Design Patterns came to mind first--but then I thought about how that might actually be a follow-up read to JavaScript Enlightment. If Osmani's Patterns book is out, then so is Stefanov's JavaScript Patterns. And Lindley more/less explicitly calls out Crockford's JavaScript The Good Parts as the kind of book that would scare off his target audience. Nicholas Zakas' new book, Principles of Object-Oriented Programming in JavaScript, is very similar in what it covers, and has more/less the same thesis... According to my survey, that's the closest contender. (And each offers something that the other does not so...)I guess my final verdict is that I'd recommend Zakas' Principles of Object-Oriented Programming in JavaScript, and if it scares you too much then back-track to JavaScript Enlightenment -- but with the caution that you need to be disciplined in how you approach it, because we can't have you littering your code with new Number(1).----[^1]: I had a similar reaction when I reviewed Eric Sarrion's jQuery UI.[^2]: For example: not calling "auto-boxing" by name. For example: calling it a "self-invoking anonymous function" instead of an "immediately-invoked function expression".[^3]: The omission of strict mode seems like a major oversight to me. I realize that Lindley's discussion was germane to ES3 and not ES5--but 'use strict' is out there in the wild, and it can dramatically alter some of the behaviors described in this book. If the target audience really is people that are diving into the plumbing of their essential libraries, then some of them are going to see this and not realize the significant implications it might have w/r/t/ some bug they're trying to trace.[^4]: Perhaps even too colloquial from time to time. "Grok"? Seriously? We need a moratorium on this so-called word.----Disclosure: I received an electronic copy of this book from the publisher in exchange for writing a review.

  • Kaela
    2019-04-27 01:14

    I attempted to read this book before knowing anything about js, and it was too difficult to comprehend. After taking a few courses on codeschool, this book was a breeze. It really helps instill the "why" behind the language. Great book!!The author does repeat himself a LOT, and even warns readers that he will do so. If you already know the language really well, the read may drag for you. If you're having a difficult time understanding js, the book will drive home important concepts.On a scale from 0-10 (newb to expert js developer), I'd recommend this book to learners around the 2-4 range.

  • Matt Chapman
    2019-05-22 22:16

    See review on

  • Rachel Nabors
    2019-05-09 03:05

    I got into web development from the web design end of things. I've always wanted to master JavaScript and release my bonds to libraries like jQuery. Other web developers told me to read "JavaScript the Good Parts" and "Eloquent JavaScript," but invariably I'd get a third of the way through the book before falling asleep. Those books were written by people with computer science degrees for people who are programmers first, designers and front-end implementers second.This book is not like that. Cody assumes you can't tell the difference between "object oriented" and "procedural." In the first few pages he illustrates what an "object" is: a collection of value pairs. Then he illustrates how everything in JS is just an object. And he builds on that to explain prototypal inheritance and closures.And for the first time in my life, I got it. Those other highly recommended books make so much more sense now. If you're having trouble wrapping your brain around JS, this might be the starting point for you.

  • Nate Berggren
    2019-05-23 00:22

    I would recommend this book only as a companion to another book, such as Crockford's JavaScript: the Good Parts. It was useful to me to read an alternate explanation of many of the concepts that Crockford covers in his book. After reading Enlightenment, I re-read The Good Parts, and it made much more sense. Here what i didn't like about the book. The text is extremely repetitive. While Lindley warns in advance that he will be repeating important concepts, I believe he goes overboard. The code examples include too much boilerplate, which obscures their readability. Another reviewer mentioned the anti-patterns and suggestions to not do what was just demonstrated.I also find excessive use of the word "grok" in writing—other than by Heinlein—to give the impression the author is trying too hard to be hip.

  • Ahmed Boha
    2019-05-12 02:02

    Why this book is given such a low rating is beyond me. This book will teach you almost everything a professional JavaScript developer needs to know. I mean this guy Cody Lindley does know what he's talking about, if only he were as good a tutor as he is a developer, although this wasn't the biggest flaw of the book. That honor goes to his oversimplification (as well as over-complication) of certain subjects he discussed throughout the book. The author goes on and on about some stuff he had already discussed and explained. Had this book been trimmed down to 90 pages instead of over 160, this book would have been a must-have guide for any modern web developer. Nevertheless, this is a stellar book to help "enlighten" you about anything JavaScript.

  • Derek
    2019-05-12 03:29

    If you need to build your JavaScript knowledge from the ground up, I'd recommend reading JavaScript Enlightenment, or a book like it, and then jumping into Crockford's The Good Parts. The two books are fair companions - JavaScript Enlightenment is a good, basic look at JavaScript, and the Good Parts is a more conversational, deeper dive.A similar book written with ES6 in mind would be preferable to this one, but Lindley's book is still a good resource if you can't find another. If you're an experienced developer and have been writing JavaScript for a while, I doubt you'll learn anything new from this book.

  • Jeroen
    2019-05-22 04:28

    He really hammers it in. I enjoyed reading the book and learned a bit of the inner workings of the language. (some sidesteps in to "Eloquent Javascript" and some more on closures also helped) Mr. Lindley does come over as very repetitive, hammering again and again on the fact that primitives are stored as values (eg). This repetitiveness got a bit boring in the end. The good thing though is that you really feel like you're learning something. "I already know that dude". I understand a bit more of javascript now, which was the point. I made quite a few annotations and will be sure to check back later.

  • Rob 'Crash'
    2019-04-26 20:18

    I've been writing JavaScript for about 2 weeks and mostly just libraries, our but this book didn't really give me much new information. What information it gave seemed to be repeated two or three times. I actually looked back and forward through the text multiple times to see if my eReader had dropped me back a page or two. It seemed like the same concepts were given multiple times. And not in a way that helped me understand it better, but so I thought I was actually reading the exact same pages over and over.

  • Lars De Richter
    2019-05-01 20:21

    I would not recommend this book for learners. I did like the idea that it starts from objects, but when using this to teach javascript to real beginners, it failed miserably. It simply becomes too complex too quickly and it is by far too abstract for beginners. For more advanced programmers on the other hand it is too tedious with all its repetitions.

  • Ian
    2019-05-07 02:21

    As a "self-taught" JavaScript author, I found this book tremendously helpful at filling in the gaps that come with learning via StackOverflow. The author's concise writing style is a treat, although the last few chapters are basically the same thing with some Find & Replace going on. Great book, would highly recommend to anyone who feels like their foundation needs repair.

  • Scott
    2019-04-26 01:23

    This takes the cake as one of the worst books I've read. How do I get that time back! I felt like I was being lectured by a student who fronts like he knows programming, and struggles to be taken seriously. But you hear and sense the lack of conviction. Do these publishers screen these guys?Eloquent Javascript would be a better fit for novice, and even seasoned developers/hobbyist.

  • Donald Guy
    2019-05-13 22:09

    Super redundant and not very informative really. Maybe a decent novice book but not even sure of that. Honesty, the table of contents is maybe a decent couple pages of reminders, but the content of each section rarely actually says anything else and code samples are mediocre to shitty. On the plus side, It's a quick read.

  • Joel
    2019-04-30 01:23

    Good introduction to the basics of Javascript, very repetitive (though author warns in preface) which isn't terrible considering how terse the copy.Sample code is all available as live code via link in e-book, which is a nice modern touch.

  • Jeff
    2019-05-15 00:03

    A little redundant at times, but I think this book is a good first read before jumping into a more advanced JavaScript book like JavaScript: The Good Parts...which I plan to reread now that I have a better understanding of the prototype stuff.

  • Jason Gill
    2019-05-17 00:28

    I have always struggled with OOP in JavaScript, but this book has changed that. Very helpful and well written examples. If you already know JavaScript, but just need an OOP crash course, the first couple of chapters is all you need. The rest is mostly review, hence 4 stars instead of 5.

  • Kumanan Murugesan
    2019-05-06 00:13

    Helped me to get a deeper understanding of JavaScript. Since JavaScript is the foundation for all the front end frameworks, I believe a good understanding of JavaScript will help me to be a better front end developer.

  • Enrique Sánchez
    2019-05-12 04:22

    Super easy to follow and to the point short overview of objects in JavaScript, as well as their inheritance and prototype.

  • Katherine
    2019-05-15 21:07

    OK for beginners but this is not an enlightening beginning if you pick this up as your first book on Javascript. Great title though!

  • Mohamed
    2019-05-07 02:24


  • Seto Elkahfi
    2019-05-15 02:16

    Yes, this book successfully enlighten my JavaScript journey