In comp.lang.javascript message <
[email protected]
glegroups.com>, Thu, 2 Aug 2007 07:12:56, (e-mail address removed) posted:
A freely-available online book about JavaScript has just been
launched:
http://eloquentjavascript.net
Since you have overridden my choice of Browser font, I will not be
reading it much. I prefer a Serif font; you set a sans-serif font - not
even my default Arial, but more squashed-together. NASA and some
Russians are just as bad.
You have also made top-of-page navigation appear in very faded grey.
Your excessive margins waste my screen space.
A wise author leaves the readers' defaults for plain text uncorrupted.
The document is undated, does not identify its author, and provides no
obvious feedback address. Clicking the face gives me three runtime
errors, then provides one of those stupid boxes which are far too small;
if I want to mail you, I will want to use my own mail system, which
properly files everything. And there is no box for my name or address.
The index makes no mention of Date.
In Chapter 4, the description of the getTime values has the standard two
errors.
On date equality - you don't take the opportunity to say that
+new Date(0) == +new Date(0) gives true
Aunt Emily writes dates as DD-MM-YYYY : that is uncommon. Europe uses,
mostly, DD/MM/YYYY or DD.MM.YYYY, and the USA uses MM/DD/YYYY. ISO uses
'-' as the separator; it is IMHO unwise to use the ISO separator with a
non-ISO field order, except when writing only for a locality that
prefers it. Let her be wise and use YYYY-MM-DD.
In Chapter 10, I think you should make it clear that RegExps are not
restricted to JS, and that other implementations are similar but not
necessarily identical.
Chapter 2 - the limit is 2^53, not 2^52. That's over 9e15.
"Calculations with whole numbers (also called integers) that fit in 52
bits are guaranteed to always be precise." Apart from 52->53, that's
not entirely so. Shift and other operations are 32-bit. I think you
don't mention the useful Unary + operator.