Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Crockford's JavaScript, The Good Parts (a book review).

View parsed - Show only message text

Path: g2news2.google.com!postnews.google.com!r66g2000hsg.googlegroups.com!not-for-mail
From: lorlarz <lorl...@gmail.com>
Newsgroups: comp.lang.javascript
Subject: Re: Crockford's JavaScript, The Good Parts (a book review).
Date: Mon, 18 Aug 2008 14:41:21 -0700 (PDT)
Organization: http://groups.google.com
Lines: 69
Message-ID: <44d300f9-0f5d-44b9-ad5a-a183656886c5@r66g2000hsg.googlegroups.com>
References: <468580d0-796d-46bb-b179-0cae2c710c8c@26g2000hsk.googlegroups.com> 
	<873al2nhfy.fsf@zeekat.nl>
NNTP-Posting-Host: 68.165.191.118
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1219095681 25476 127.0.0.1 (18 Aug 2008 21:41:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 18 Aug 2008 21:41:21 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r66g2000hsg.googlegroups.com; posting-host=68.165.191.118; 
	posting-account=FsZtWwoAAABhnJgAO55JXy66dEP1BWYR
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
	2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe)

On Aug 18, 4:26=A0pm, Joost Diepenmaat <jo...@zeekat.nl> wrote:
> lorlarz <lorl...@gmail.com> writes:
> > Crockford's JavaScript, The Good Parts (a book review).
> > This shall perhaps be the world's shortest book review (for one of the
> > world's
> > shortests books).
>
> > I like Douglas Crockford (because I am a crabby old man too; plus he
> > _is_
> > smart and good).. But, how can he write a book on the good parts of
> > JavaScript
> > and not mention functions that address CSS & DOM? =A0Weird. =A0It's lik=
e
> > how to play
> > with things but not address the real things JS is made to play with.
> > With what
> > Crockford talks about we don't have enough to actually =A0_use_
> > javascript on the
> > web (i.e on the Internet in a browser).
>
> > Is this a weakness? =A0Yes. =A0Damned right. =A0CSS may not be fully
> > implemented
> > and the DOM is not fully standardized across browsers, but NONE of
> > this is
> > an insurmountable problem _and_ it **_IS_** what JavaScript is all
> > about.
>
> Good that your post reminded me to get the book. Anyway, Crockford as
> far as I can tell, is fed up with the shoddy way people actualy *code*
> in javascript/ecmascript, and has set out to write a book to teach
> coders how to make effective use of the *language*.
>
> The language itself does NOT include any CSS, DOM, BOM or whatever,
> and there is at least one fairly popular implementation that doesn't
> address CSS etc at all. See: actionscript.
>
> Things are not as bad as back in the 90s, but in the whole DOM/CSS/BOM
> bag there is still an unreasonably large lump of compatibility crap to
> deal with, and putting all that into a book about "good coding
> practices" would dilute the good bits probably to the point of making
> them footnotes.
>
> --
> Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/- =
Hide quoted text -
>
> - Show quoted text -

Hey.  You really are being ridiculous.  The many many JavaScript
functions
for addressing and altering the DOM and addressing an altering CSS
are
_javascript_ functions.   AND, they are what allow much of the
communication
 that is JavaScript in action.  Examples:

GetElementById(string which is element id);
createElement(string which is element type);
[element to appendTo].appendChild(variable representing new element);
document.getElementById(elementName).value =3D variable or string;
document.getElementById(elementName)style.display =3D "none";
document.getElementById(elementName).innerHTML =3D "hi";

Without such stuff there is NO javascript program that actually does
anything
in the browsers.  NOTHING HAPPENS WITHOUT SUCH FUNCTIONS, unless you
are
happy with alerts.  Really.  Get real.


Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google