Edit
Attach
Printable
topic end
<!-- * Set TOPICTITLE = #define private public - Claus Brod on stuff (04 May 2013) --> <style type="text/css"> pre {background-color:#ffeecc;} </style> %STARTINCLUDE% <a name="04"></a> ---+++ [[DefinePrivatePublic20130504TheGoodParts][<nop>JavaScript: The Good Parts]] (04 May 2013) <div style="float:right;"><img src="%ATTACHURLPATH%/js_singleton.png" alt="js_singleton.png" border="1" width="150" /></div> <summary> Finally, after all those years, I got around to reading "<nop>JavaScript: The Good Parts" - pretty much from cover to cover. </summary> All in all, a great book! However, it left me even more confused about how <nop>JavaScript sets "<tt>this</tt>" than I was before. 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. But I am pretty sure I will forget <nop>JavaScript's context subtleties fairly quickly, and then I will have to look them up again. Oh well. <!-- Maybe I should also watch Doug Crockford's presentation at http://www.youtube.com/watch?v=hQVTIJBZook ... --> Crockford's approach is to focus on a subset of <nop>JavaScript which he considers sane, Of course there is much debate on what belongs into the subset and what doesn't. For example, Crockford bans the <tt>++</tt> and <tt>--</tt> operators because they remind him too much of obfuscated C++ code. I did not find this particular advice too convincing, and it seems [[http://stackoverflow.com/questions/971312/why-avoid-increment-and-decrement-operators-in-javascript][I am not alone]]. To experiment with code from the book and test some code of my own, I used the [[http://trac.webkit.org/wiki/JSC][jsc]] command-line JS interpreter on the Mac, and also toyed with http://jsfiddle.net/. (On Ubuntu, I guess I could have used [[http://manpages.ubuntu.com/manpages/hardy/man1/rhino.1.html][rhino]].) --- %STOPINCLUDE% %COMMENT{type="below" nonotify="on"}% ---
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
Refresh
|
More topic actions
Revisions: | r1.6 |
>
|
r1.5
|
>
|
r1.4
|
Total page history
|
Backlinks
You are here:
Blog
>
DefinePrivatePublic20130504TheGoodParts
r1.6 - 06 May 2013 - 14:22 -
ClausBrod
to top
Blog
This site
2017
:
12
-
11
-
10
2016
:
10
-
7
-
3
2015
:
11
-
10
-
9
-
4
-
1
2014
:
5
2013
:
9
-
8
-
7
-
6
-
5
2012
:
2
-
10
2011
:
1
-
8
-
9
-
10
-
12
2010
:
11
-
10
-
9
-
4
2009
:
11
-
9
-
8
-
7
-
6
-
5
-
4
-
3
2008
:
5
-
4
-
3
-
1
2007:
12
-
8
-
7
-
6
-
5
-
4
-
3
-
1
2006:
4
-
3
-
2
-
1
2005:
12
-
6
-
5
-
4
2004:
12
-
11
-
10
C++
CoCreate Modeling
COM & .NET
Java
Mac
Lisp
OpenSource
Scripting
Windows
Stuff
Changes
Index
Search
Maintenance
Impressum
Datenschutzerklärung
Home
Webs
Atari
Blog
Claus
CoCreateModeling
Klassentreffen
Main
Sandbox
Sommelier
TWiki
Xplm
Jump:
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