JavaScript: The Good Parts (04 May 2013)

Finally, after all those years, I got around to reading "JavaScript: The Good Parts" - pretty much from cover to cover.

All in all, a great book, but after reading it, I was even more confused about how this is set in JavaScript than I was before big grin Fortunately, I found the discussion at http://stackoverflow.com/questions/3127429/javascript-this-keyword and the article at http://www.digital-web.com/articles/scope_in_javascript/ which both clarified open questions for me. However, I am pretty sure I will forget JavaScript's context subtleties much sooner than I'd like.

Crockford's approach is to focus on a subset of JavaScript which he considers sane. Now, of course there is much debate on what belongs into the subset and what doesn't. For example, Crockford bans the ++ and -- operators because they remind him too much of obfuscated C++ code. I did not find this particular advice too convincing, and it seems I am not alone.

Related links:



When asked for a TWiki account, use your own or the default TWikiGuest account.


Revision: r1.4 - 05 May 2013 - 14:13 - ClausBrod
Blog > DefinePrivatePublic20130504TheGoodParts
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback