473,378 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Crockford's JavaScript, The Good Parts (a book review).

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? Weird. It's like
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 _use_
javascript on the
web (i.e on the Internet in a browser).

Is this a weakness? Yes. Damned right. CSS 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.

Fortunately, I have read about 20 good JavaScript books (and contrary
to
Crockford there ARE good books) and what made them good was excellent
examples of manipulating CSS and the DOM.
Aug 18 '08
76 3938
Thomas 'PointedEars' Lahn <Po*********@web.dewrites:
Joost Diepenmaat wrote:
>It was my understanding the the standard library is mostly(?) optional
(it's not needed when you're writing an OS in C for example). I can't
find the relevant keywords to google so I may be mistaken about that.
Just the fact that you can replace the standard library probably
counts for something, anyway.

Yet I find it hard to imagine to write an efficient OS without libc's stdio.h.
The OS might *provide* a stdio.h, but an OS would have to *implement*
it itself (or at least, provide the kernel calls with which stdio.h
would be implemented).

See for instance: fopen(3) vs open(2)

But we're getting very off topic now.

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Aug 19 '08 #51
In comp.lang.javascript message <55ec33dc-ef70-4ef1-a102-5ac18a04d4b4@s5
0g2000hsb.googlegroups.com>, Tue, 19 Aug 2008 07:23:32, lorlarz
<lo*****@gmail.composted:
>Not only hsve I been making JavaScript Programs for ten years. I am
a
Sun Certified Programmer for the Java 2 Platform (2000) and am a
Microsoft
Certified ASP.NET programmer.
Please give URLs for some of your work, so that we may assess its
quality and (maybe) learn from it.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Aug 19 '08 #52
On Aug 19, 12:43*pm, Dr J R Stockton <j...@merlyn.demon.co.ukwrote:
In comp.lang.javascript message <55ec33dc-ef70-4ef1-a102-5ac18a04d4b4@s5
0g2000hsb.googlegroups.com>, Tue, 19 Aug 2008 07:23:32, lorlarz
<lorl...@gmail.composted:
Not only hsve I been making JavaScript Programs for ten years. *I am
a
Sun Certified Programmer for the Java 2 Platform (2000) and am a
Microsoft
Certified ASP.NET programmer.

Please give URLs for some of your work, so that we may assess its
quality and (maybe) learn from it.

It's a good idea to read the newsgroup c.l.j and its FAQ. *See below.

--
*(c) John Stockton, nr London UK. * ?...@merlyn.demon.co.uk * * IE7 FF2 Op9 Sf3
*news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
*<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
*<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
If you look earlier in this very thread there are links to my actual
javascript applications -- something apparently almost no one but me
writes.
While mine may not be sophisicated, know that I work completely alone
& at least I
do applications in JS. When are the rest of you going to get with
that program,
and start _and_ thus quit being script kiddies and giving javascript,
the world's
best programming language, a bad name??
Aug 20 '08 #53
On Aug 19, 9:50*am, lorlarz <lorl...@gmail.comwrote:
On Aug 19, 2:13*am, Gregor Kofler <use...@gregorkofler.atwrote:
lorlarz meinte:
[crap snipped]
Just stop reading books, which scope you can't or won't understand.
Resort to Resig's alternatives.
Gregor
--http://photo.gregorkofler.at:::Landschafts- und Reisefotografiehttp://web.gregorkofler.com*::: meine JS-Spielwiesehttp://www.image2d.com*** ::: Bildagentur für den alpinen Raum

Frankly, I just thing you Crockford fanatics are lazy and just want
to
read 100 pages and think you know something. *You could hardly make a
single decent
interactive JS program appear in a browser with what is in that book
(and perhaps
couldn't). *Yet, somehow Crockford claims to cover the "best parts"!
What a joke.

How are you going to
effectively and efficiently change the user interface? *Crcokford does
not
help even the slightest bit here, though this is a major issue (just
perhaps not
one pat enough for crabby Crockford's taste). *About 10 good books
Crockford
shows no respect for are the only sources to learn anything about
this,
including any principles of good coding in this area. *He disrespects
the
hard work of a decade of hard-working book writers -- all people I
read and
learned greatly from (though admittedly many of the books were in some
ways "bad"
and often read like encyclopedias). *But, Crockford's book is bad
because it is so
incomplete and its examples covering only a small subset of the
practical functions
in Javascript. *Really good books show really good programs (at least
some) and they
actually appear in your browser. *Crockford has written just another
very bad book,
from this perspective. * CSS/DOM: *Do the Crockfordians forget is
exists or that
there are many good/bad practices in dealing in this area??

Crockford's book (to be useful) really assumes you know at least many
many
times as much about JavaScript than is in the book. *Crockford's
abstract
examples do not deal with much of the JavaScript a JavaScript
programmer uses.
Places where we need to have principles and best practices clarified.
CSS/DOM

Crockford is good in his small limited area. *I learned from him and I
value
that learning. *But the conceit of Crockford and disparaging other
books, when '
he writes just one that is outrageous limited and incomplete makes me
think he is an
old foggie.
Another VK. *sigh*

--
kangax
Aug 20 '08 #54
kangax wrote:
On Aug 19, 9:50 am, lorlarz <lorl...@gmail.comwrote:
>[...]
Crockford is good in his small limited area. I learned from him and I
value that learning. But the conceit of Crockford and disparaging
other books, when ' he writes just one that is outrageous limited and
incomplete makes me think he is an old foggie.

Another VK. *sigh*
Yes, indeed. Please do not feed the troll. Thanks in advance.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Aug 20 '08 #55
On Aug 20, 5:26*am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
kangax wrote:
On Aug 19, 9:50 am, lorlarz <lorl...@gmail.comwrote:
[...]
Crockford is good in his small limited area. *I learned from him andI
value that learning. *But the conceit of Crockford and disparaging
other books, when ' he writes just one that is outrageous limited and
incomplete makes me think he is an old foggie.
Another VK. *sigh*

Yes, indeed. *Please do not feed the troll. *Thanks in advance.

PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
* -- from <http://www.vortex-webdesign.com/help/hidesource.htm>
You know what a troll really is. It is a person who complains about
something with no specifics and says bad things without backing them
up at all, like laurent. Nobody knows what he is talking about and
what
he might be looking for. There is no evidence he is not just a lying
pretender.

I do not do that crap. I am saying I have seen NO evidence that
Crockford
makes JavaScript PROGRAMS and without that experience he lacks the
experience with major functions (relating to the DOM and CSS) and
very likely fails to KNOW the best principles here and many of the
"good parts" of JavaScript. He has the JSLint program, I know. But
what
JS programs for normal users with UIs and involving changes in the
UI has he made? LET'S SEE THEM. I DON'T MIND BEING WRONG.

Now, while it is impossible to know what would content laurent,
I would be happy to see some evidence of JS programs all in
Javascript
for regular people, using a UI in the browser.

Without such a demonstration, all will realize that IT IS LIKELY that
Crockford does NOT know all the "good parts" of JavaScript.

And, I WOULD LIKE TO SEE
ANYBODY'S JAVASCRIPT PROGRAMS -- PLEASE!!!

Aug 20 '08 #56
In comp.lang.javascript message
<xa**************@J.A830F0FF37FB96852AD08924D9443D 28E23ED5CD>, Tue, 19
Aug 2008 19:53:00, John G Harris <jo**@nospam.demon.co.ukposted:
>The algorithms in Knuth's famous books are written in a programming
language that won't run in any real computer. Are you complaining about
that as well ?
That suggests that you may have ready access to the books. If so, it
would be interesting to know what he has for the Date of Easter Sunday -
and what authority he gets his definition from!

My <URL:http://www.merlyn.demon.co.uk/estrdate.htmff. will, if
desired, indicate why.

Here's a thought. The Calendar Act of 1751, as passed, applies to
Britain and Colonies (excluding the AU/NZ area?). It was presumably
inherited by the US Republic in 1776. Constitutionally, the US can make
no law regarding an establishment of religion. Does that provision
annihilate the Act there, in which case they should be using the Julian
Calendar? Or does that provision render the Act immutable, except by
Constitutional Amendment?

This E-address is confidential, but ends up in Turnpike.

Regards,

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/- w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/- see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
Aug 20 '08 #57
In comp.lang.javascript message <8225ddf4-dc13-4c43-a89d-7b38db28f10d@j2
2g2000hsf.googlegroups.com>, Tue, 19 Aug 2008 11:39:11, lorlarz
<lo*****@gmail.composted:
>
And, finally (with respect to your material quoted below):
Javascript's MAIN use is for use in the web browsers (check your
history,
if you are unclear about this). The language was in NO WAY designed
to be
independent of the DOM, etc. ECMA standards NOTWITHSTANDING.
(A) Please do not paste text wrapped at a wider margin into Google; it
becomes tiresome to read. Either wrap your material narrower, or do not
wrap it before pasting.

(B) JavaScript is independent of the DOM; read ISO/IEC 16262, and you
will see that it is DOM-dependent. JavaScript is what the international
standard says, after allowing for any errata. What JavaScript was when
*first* written is not relevant here. History is past.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
Aug 20 '08 #58
lorlarz wrote:
Are these programs?:

http://mynichecomputing.com/ReadIt/translateT.html
http://mynichecomputing.com/GuideInf...niversalDD.htm
http://mynichecomputing.com/hierMenu...nuBuilder3.htm
http://mynichecomputing.com/digitallearning/yourOwn.htm
http://mynichecomputing.com/linkGuider/

Yes, they are. *Programs a person can actually run in a browser
and show something and do something and that people can use. *
It must be great to live under such simple truths. Why are there 221
errors in your homepage then ? Trying to set an Olympic record ? :)
You should learn about basic markup first, like e.g. http://validator.w3.org.
Happy coding!

--
Bart
Aug 20 '08 #59
lorlarz meinte:
You know what a troll really is.
Right. Lorlarz is. No wait you're perhaps too much of an idiot to
qualify as real troll. An idiot who can't read. Otherwise...
I do not do that crap. I am saying I have seen NO evidence that
Crockford
makes JavaScript PROGRAMS
....you would have noticed my list of useful programs by Crockford.
experience with major functions (relating to the DOM and CSS) and
very likely fails to KNOW the best principles here and many of the
"good parts" of JavaScript. He has the JSLint program, I know. But
what
JS programs for normal users with UIs and involving changes in the
UI has he made? LET'S SEE THEM. I DON'T MIND BEING WRONG.
IIRC there's even a video on YUI theater with him about the DOMs and
their peculiarities. But it's for programmers and therefore clearly not
suited for you.
And, I WOULD LIKE TO SEE
ANYBODY'S JAVASCRIPT PROGRAMS -- PLEASE!!!
Now, that's easy. Even for you. Depending on your browser you'll have a
menu entry labeled "show page source". Activate it. Here you go... (or
perhaps not.)

On second thought I have to admit I was wrong: You are a troll - a
better one than VK ever was. Sorry for feeding you. Won't happen again.

--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 20 '08 #60
On Aug 20, 1:22*pm, Gregor Kofler <use...@gregorkofler.atwrote:
lorlarz meinte:
You know what a troll really is.

Right. Lorlarz is. No wait you're perhaps too much of an idiot to
qualify as real troll. An idiot who can't read. Otherwise...
I do not do that crap. *I am saying I have seen NO evidence that
Crockford
makes JavaScript PROGRAMS

...you would have noticed my list of useful programs by Crockford.
I never saw any list of Crockford's JavaScript Programs (this is to
say:
applications). I have seen and enjoyed all his videos (though his
debilitating
conceit shows through there as well, and is almost certainly a
handicap for him,
even personally in his work).
>
experience with major functions (relating to the DOM and CSS) and
very likely fails to KNOW the best principles here and many of the
"good parts" of JavaScript. He has the JSLint program, I know. *But
what
JS programs for normal users with UIs and involving changes in the
UI has he made? *LET'S SEE THEM. *I DON'T MIND BEING WRONG.

IIRC there's even a video on YUI theater with him about the DOMs and
their peculiarities. But it's for programmers and therefore clearly not
suited for you.
Saw them all and understood them all. BUT, STILL: I have yet to see a
web app
on a web page by Crockford, other than the inert code cruncher, JSLint
--
something I do use, but do NOT pay attention to all matters relating
to style.
>
And, I WOULD LIKE TO SEE
ANYBODY'S JAVASCRIPT PROGRAMS -- PLEASE!!!

Now, that's easy. Even for you. Depending on your browser you'll have a
menu entry labeled "show page source". Activate it. Here you go... (or
perhaps not.)
Javascript snippets done by script kiddies do NOT constitute what I
(or anyone else) would call a program (or application). I gave
a definition of sorts of a JavaScript PROGRAM that most would
both understand and agree with a few posts back.
>
On second thought I have to admit I was wrong: You are a troll - a
better one than VK ever was. Sorry for feeding you. Won't happen again.
You can't help yourself. You have to defend irrationally.
>
--http://photo.gregorkofler.at::: Landschafts- und Reisefotografiehttp://web.gregorkofler.com*::: meine JS-Spielwiesehttp://www.image2d.com* ** ::: Bildagentur für den alpinen Raum
Aug 20 '08 #61
On Aug 20, 1:19*pm, Bart Van der Donck <b...@nijlen.comwrote:
lorlarz wrote:
Are these programs?:
http://mynichecomputing.com/ReadIt/translateT.html
http://mynichecomputing.com/GuideInf...niversalDD.htm
http://mynichecomputing.com/hierMenu...nuBuilder3.htm
http://mynichecomputing.com/digitallearning/yourOwn.htm
http://mynichecomputing.com/linkGuider/
Yes, they are. *Programs a person can actually run in a browser
and show something and do something and that people can use. *

It must be great to live under such simple truths. Why are there 221
errors in your homepage then ? Trying to set an Olympic record ? :)
You should learn about basic markup first, like e.g.http://validator.w3.org.
Happy coding!

--
*Bart
Errors in html on the home page are either the fault of ASP.NET and MS
or
of the guy I got the template of. I would never make that many
errors.

But, let's confine our discussion to JavaScript PROGRAMS
(applications),
if anyone knows what they are. I would love to see them and discuss
them.
Does this ever happen here or are just nerdy things all that goes on?
Aug 20 '08 #62
On Aug 20, 10:00*am, Dr J R Stockton <j...@merlyn.demon.co.ukwrote:
In comp.lang.javascript message <8225ddf4-dc13-4c43-a89d-7b38db28f10d@j2
2g2000hsf.googlegroups.com>, Tue, 19 Aug 2008 11:39:11, lorlarz
<lorl...@gmail.composted:
And, finally (with respect to your material quoted below):
Javascript's MAIN use is for use in the web browsers (check your
history,
if you are unclear about this). *The language was in NO WAY designed
to be
independent of the DOM, etc. *ECMA standards NOTWITHSTANDING.

(A) Please do not paste text wrapped at a wider margin into Google; it
becomes tiresome to read. *Either wrap your material narrower, or do not
wrap it before pasting.

(B) JavaScript is independent of the DOM; read ISO/IEC 16262, and you
will see that it is DOM-dependent. *JavaScript is what the international
standard says, after allowing for any errata. *What JavaScript was when
*first* written is not relevant here. *History is past.

--
*(c) John Stockton, nr London, UK. ?...@merlyn.demon.co.uk *Turnpike v6.05 *MIME.
*Web *<URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms,& links.
*Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
*Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
I do understand that JavaScript can be used independently of the DOM.

I personally am interested in JavaScript programs (applications) that
dynamically interact with DOMs, though. In short, the area
JavaScript was made for, yet still is rarely, rarely used to
its capacity in. Also, although JavaScript CAN be used
independently of the DOM, many of its functions are for DOM
manipulation; thus, to KNOW JavaScript is to also know these
functions. Otherwise perhaps you should say you are discussing
NERD's-creepy-limited-unexciting-bonehead javascript,
to make it clear you are not talking about all of the javascript
language.

By the way: Which line above is of the correct length?
Aug 20 '08 #63
lorlarz wrote:
On Aug 20, 1:19 pm, Bart Van der Donck wrote:
>Why are there 221 errors in your homepage then ?

Errors in html on the home page are either the fault of ASP.NET and
MS or of the guy I got the template of. *
You're not even sure about that ? That's worse than making 221 errors.
You don't seem to bother to give much credibility to your statements,
right ?
I would never make that many errors.
Ah. Let's take one of your own pages then:
http://mynichecomputing.com/linkGuider/ gives only 43 errors and 27
warnings indeed, besides crashing my Internet Explorer.
But, let's confine our discussion to JavaScript PROGRAMS
(applications), if anyone knows what they are.
Rest assured that many regulars in this group have written far more
code than you.

--
Bart
Aug 20 '08 #64
On Aug 20, 2:31*pm, Bart Van der Donck <b...@nijlen.comwrote:
lorlarz wrote:
On Aug 20, 1:19 pm, Bart Van der Donck wrote:
Why are there 221 errors in your homepage then ?
Errors in html on the home page are either the fault of ASP.NET and
MS or of the guy I got the template of. *

You're not even sure about that ? That's worse than making 221 errors.
You don't seem to bother to give much credibility to your statements,
right ?
I would never make that many errors.

Ah. Let's take one of your own pages then:http://mynichecomputing.com/linkGuider/gives only 43 errors and 27
warnings indeed, besides crashing my Internet Explorer.
But, let's confine our discussion to JavaScript PROGRAMS
(applications), if anyone knows what they are.

Rest assured that many regulars in this group have written far more
code than you.

--
*Bart
Script Kiddies can write a lot of stupid simple code with ever
writing a useful or interesting JavaScript Application and
all that counts for NOTHING.
By the way, everyone can apparently get Crockford's
javascript: The Good Parts for FREE NOW. I just
checked it out and it works:

http://www.ebook3000.com/JavaScript-...rts_20508.html
(download and then using 7-Zip to extract the rar and then
you unzip the zip and then finally extract the remaining large
rar)
Perhaps a lot more people can now decide if Crockford's
very accurate but very limited coverage is very usefual at all.
Aug 20 '08 #65
On Aug 20, 2:39*pm, lorlarz <lorl...@gmail.comwrote:
On Aug 20, 2:31*pm, Bart Van der Donck <b...@nijlen.comwrote:


lorlarz wrote:
On Aug 20, 1:19 pm, Bart Van der Donck wrote:
>Why are there 221 errors in your homepage then ?
Errors in html on the home page are either the fault of ASP.NET and
MS or of the guy I got the template of. *
You're not even sure about that ? That's worse than making 221 errors.
You don't seem to bother to give much credibility to your statements,
right ?
I would never make that many errors.
Ah. Let's take one of your own pages then:http://mynichecomputing.com/linkGuider/givesonly 43 errors and 27
warnings indeed, besides crashing my Internet Explorer.
But, let's confine our discussion to JavaScript PROGRAMS
(applications), if anyone knows what they are.
Rest assured that many regulars in this group have written far more
code than you.
--
*Bart

Script Kiddies can write a lot of stupid simple code with ever
writing a useful or interesting JavaScript Application and
all that counts for NOTHING.
OF COURSE, I meant "without ever" in the quoted material
three lines above. And, truer words were never spoken.

I might add that so much garbage is done, because that
CRAP is all "the man" will pay you for an many
do not have enough "balls" or grit to do anything
decent on your own without the cash.

>
By the way, everyone can apparently get Crockford's
javascript: The Good Parts for FREE NOW. *I just
checked it out and it works:

http://www.ebook3000.com/JavaScript-...rts_20508.html
(download and then using 7-Zip to extract the rar and then
*you unzip the zip and then finally extract the remaining large
*rar)

Perhaps a lot more people can now decide if Crockford's
very accurate but very limited coverage is very usefual at all.- Hide quoted text -

- Show quoted text -
Aug 20 '08 #66
On Aug 19, 10:34*am, Peter Michaux <petermich...@gmail.comwrote:
On Aug 19, 6:30 am, lorlarz <lorl...@gmail.comwrote:
.
>
Peter
Peter, Please keep your communications with me on the newsgroup. No
email please.

Aug 21 '08 #67
Joost Diepenmaat wrote:
Michael Wojcik <mw*****@newsguy.comwrites:
>Joost Diepenmaat wrote:
>>It makes perfect sense. Just like the C language doesn't provide I/O.
This is incorrect. The C standard includes the standard library, which
includes stdio. See ISO 9899:1999.

It was my understanding the the standard library is mostly(?) optional
(it's not needed when you're writing an OS in C for example). I can't
find the relevant keywords to google so I may be mistaken about that.
True, I simplified a bit. The C language includes the standard
library; however, only "hosted" implementations are required to
provide all of it. "Freestanding" implementations can leave most of it
out.

However, even for a freestanding implementation, the standard library
is still part of C; it's just an optional part.
Just the fact that you can replace the standard library probably
counts for something, anyway.
Well, technically, you can't. More specifically, defining any function
that's part of the standard library produces Undefined Behavior. Many
implementations go ahead and define the behavior in a way that does
let you replace the standard library; but that's an extension to the
language.

But the basic point stands - many languages specify their core
features, and let other standards (or proprietary inventions) define
higher-tier features. Just another case of modularization.

Another example might be network protocol stacks. TCP/IP is nicely
modularized; the IP standard says nothing about conversations
(provided by TCP) or even generalized datagrams (provided by UDP),
much less application protocols (Telnet, FTP, HTTP, etc). Those are
specified by higher-level standards. Contrast that with SNA, where
low-level stuff (like RH and RU definitions) are contaminated with all
sorts of special-purpose bits for high-level operations (like
authentication and routing).

If you want to learn how TCP works - really works, so you know how to
avoid things like Nagle / Delayed ACK interaction - you don't want to
start by learning about HTTP. And if you want to learn how ECMAScript
works, learning about the DOM isn't going to help.
I still have a project on the back burner to write an ecmascript
interpreter in Common Lisp. Probably not relevant either. :-)
That could be fun. (I'd be inclined to use Scheme, as that's the LISP
variant I'm most conversant in, but maybe this sort of project would
be a good reason to learn CLOS.)

--
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University
Aug 21 '08 #68
Dr J R Stockton wrote:
In comp.lang.javascript message
<xa**************@J.A830F0FF37FB96852AD08924D9443D 28E23ED5CD>, Tue, 19
Aug 2008 19:53:00, John G Harris <jo**@nospam.demon.co.ukposted:
>The algorithms in Knuth's famous books are written in a programming
language that won't run in any real computer. Are you complaining about
that as well ?

That suggests that you may have ready access to the books. If so, it
would be interesting to know what he has for the Date of Easter Sunday -
and what authority he gets his definition from!
Knuth, TAoCP, vol 1 (Fundamental Algorithms), 3rd ed, 1.3.2 ex 14 is
the Easter Sunday problem. The text begins:

The following algorithm, due to the Neapolitan astronomer
Aloysius Lilius and the German Jesuit mathematician
Christopher Clavius in the late 16th century, is used by
most Western churches to determine the date of Easter
Sunday for any year after 1582. (159)

Knuth then describes the algorithm, which is labeled "Algorithm E
(Date of Easter)".

So, as your site suggests, this is the Lilius / Clavius algorithm, and
Knuth doesn't appear to provide any more specific citation for it.

--
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University
Aug 21 '08 #69
Tim Streater wrote:
>
Without wishing to get embroiled in the above argument, can you indicate
why I might want to use JavaScript *not* in a browser (I mean for other
than say teaching purposes)?
Perhaps because it's a relatively clean, dynamic, fairly expressive
language with decent OO and functional features? It's well-documented
and widely used. It has desirable high-level constructs like decent
string manipulation. There are extensive libraries available for
various tasks.

Each of those claims has its challengers; there are those, for
example, who feel prototype-based OO simply isn't suitable for
large-scale development. But ECMAScript does enough well enough to be
worth considering. It isn't, say, OCaml, but it doesn't suffer from
OCaml's worst weaknesses, either.
Why might I use it for general purpose
scripting instead of, say, PHP?
Because PHP is a ghastly mess of features torn from other languages
and libraries mashed together without rhyme or reason? I know *I've*
written some fairly decent PHP code, and I'm sure plenty of other
people have to; but the language certainly doesn't encourage it.

That's not really the point, though. A better question is: in a
particular situation where ECMAScript is one option, how does it
measure up against other options? If you're writing backend scripts
for a site hosted by a provider who offers PHP but not server-side
ECMAScript, then PHP would be the reasonable choice. On the other
hand, if you're writing admin scripts to run under Windows Scripting
Host, I think JScript looks like a much nicer choice than VBScript.

And if I'm writing a widget to run under Konfabulator (the engine for
Yahoo! Widgets, which I happen to prefer over the competing
desktop-trinket environments), then I'd be using Javascript, because
that's pretty much my only choice. Of course, Konfabulator is in many
ways a browser-like environment (DOM, CSS, etc).

Another reason is that ECMAScript's popularity makes it a decent
choice for demonstrating code, particularly to non-experts. I gave a
presentation at this year's Computers & Writing conference where I
demonstrated some textual-analysis software; I wrote it in ECMAScript,
partly because I could show snippets and know that many people in the
audience had at least some familiarity with the language. Something
like OCaml would have been Greek to them. (Worse, actually, since many
were rhetoricians with some knowledge of Greek.)

--
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University
Aug 21 '08 #70
In comp.lang.javascript message <927e6344-a5a4-4cd2-9c76-a1e9c264e558@d7
7g2000hsb.googlegroups.com>, Wed, 20 Aug 2008 11:59:06, lorlarz
<lo*****@gmail.composted:
>
Errors in html on the home page are either the fault of ASP.NET and MS
or
of the guy I got the template of. I would never make that many
errors.
You are responsible for publishing them on the Web, however; and you are
responsible for choosing the tools you use and the sources that you
copy.

--
(c) John Stockton, nr London UK. replyYYWW merlyn demon co uk Turnpike 6.05.
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html-Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm: about usage of News.
No Encoding. Quotes precede replies. Snip well. Write clearly. Mail no News.
Aug 21 '08 #71
On Aug 20, 2:31*pm, Bart Van der Donck <b...@nijlen.comwrote:
lorlarz wrote:
On Aug 20, 1:19 pm, Bart Van der Donck wrote:
Why are there 221 errors in your homepage then ?
Errors in html on the home page are either the fault of ASP.NET and
MS or of the guy I got the template of. *

You're not even sure about that ? That's worse than making 221 errors.
You don't seem to bother to give much credibility to your statements,
right ?
I would never make that many errors.

Ah. Let's take one of your own pages then:http://mynichecomputing.com/linkGuider/gives only 43 errors and 27
warnings indeed, besides crashing my Internet Explorer.
But, let's confine our discussion to JavaScript PROGRAMS
(applications), if anyone knows what they are.

Rest assured that many regulars in this group have written far more
code than you.

--
*Bart
Script Kiddies can write a lot of stupid simple code without ever
writing a useful or interesting JavaScript Application and
all that counts for NOTHING.
Aug 21 '08 #72
On Aug 21, 6:46*am, Dr J R Stockton <j...@merlyn.demon.co.ukwrote:
In comp.lang.javascript message <927e6344-a5a4-4cd2-9c76-a1e9c264e558@d7
7g2000hsb.googlegroups.com>, Wed, 20 Aug 2008 11:59:06, lorlarz
<lorl...@gmail.composted:
Errors in html on the home page are either the fault of ASP.NET and MS
or
of the guy I got the template of. *I would never make that many
errors.

You are responsible for publishing them on the Web, however; and you are
responsible for choosing the tools you use and the sources that you
copy.

--
*(c) John Stockton, nr London UK. replyYYWW merlyn demon co uk Turnpike6.05.
*Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html-Timo Salmi: Usenet Q&A.
*Web <URL:http://www.merlyn.demon.co.uk/news-use.htm: *about usage of News.
*No Encoding. Quotes precede replies. Snip well. Write clearly. Mail noNews.
Hey, the template was well-reviewed and so was Microsoft's ASP.NET
2.0 .
I will not take responsibility for all that, and do find the
situation
satisfactory. Everything works for everyone. I don't break anything
do I??
I don't ruin your relationship with your loved ones. Do I?
Seems ones "moral compass" is a bit of a joke -- YOURS!
Aug 21 '08 #73
On Aug 21, 6:55*am, lorlarz <lorl...@gmail.comwrote:
On Aug 20, 2:31*pm, Bart Van der Donck <b...@nijlen.comwrote:


lorlarz wrote:
On Aug 20, 1:19 pm, Bart Van der Donck wrote:
>Why are there 221 errors in your homepage then ?
Errors in html on the home page are either the fault of ASP.NET and
MS or of the guy I got the template of. *
You're not even sure about that ? That's worse than making 221 errors.
You don't seem to bother to give much credibility to your statements,
right ?
I would never make that many errors.
Ah. Let's take one of your own pages then:http://mynichecomputing.com/linkGuider/givesonly 43 errors and 27
warnings indeed, besides crashing my Internet Explorer.
But, let's confine our discussion to JavaScript PROGRAMS
(applications), if anyone knows what they are.
Rest assured that many regulars in this group have written far more
code than you.
--
*Bart

Script Kiddies can write a lot of stupid simple code without ever
writing a useful or interesting JavaScript Application and
all that counts for NOTHING.- Hide quoted text -

- Show quoted text -
Oh, _again_ I forgot to add:

The fact that so much garbage is done is because that
CRAP is all "the man" will pay you for an many
do not have enough "balls" or grit to do anything
decent on your own without the cash.
Aug 21 '08 #74
On Tue, 19 Aug 2008 11:39:11 -0700, lorlarz wrote:
Some day when YOU, like me, start making actual full-blown Javascript
applications and stop being script kiddies, you will appreciate this point.
People: start making Javascript Applications!!
Full blown applications in Javascript?

Like a compiler and virtual machine?

Like a web-front to an online store? (Complete with full non-js fallback?)

Or perhaps the data editor, including an image map generator?

And that is just the stuff that runs in the browser.

I have an entire interactive parts catalogue lookup and cross reference
written in Javascript and that does NOT run in a web browser, though it does
use Microsoft's IE object as its GUI.

>
And, finally (with respect to your material quoted below): Javascript's
MAIN use is for use in the web browsers (check your history,
if you are unclear about this). The language was in NO WAY designed to
be
independent of the DOM, etc. ECMA standards NOTWITHSTANDING.
Aug 21 '08 #75
On Aug 21, 12:55*pm, Jeremy J Starcher <r3...@yahoo.comwrote:
On Tue, 19 Aug 2008 11:39:11 -0700, lorlarz wrote:
Some day when YOU, like me, start making actual full-blown Javascript
applications and stop being script kiddies, you will appreciate this point.
People: start making Javascript Applications!!

Full blown applications in Javascript?

Like a compiler and virtual machine?

Like a web-front to an online store? *(Complete with full non-js fallback?)

Or perhaps the data editor, including an image map generator?

And that is just the stuff that runs in the browser.

I have an entire interactive parts catalogue lookup and cross reference
written in Javascript and that does NOT run in a web browser, though it does
use Microsoft's IE object as its GUI.
And, finally (with respect to your material quoted below): Javascript's
MAIN use is for use in the web browsers (check your history,
if you are unclear about this). *The language was in NO WAY designed to
be
independent of the DOM, etc. *ECMA standards NOTWITHSTANDING.

I invite you to share one or more of your applications, with well-
commented code
or explanatory text so many can learn from your techniques, design
patterns, etc.
Please contribute to our knowledge: http://groups.google.com/group/realcomplangjsapps
Aug 22 '08 #76
On Fri, 22 Aug 2008 06:45:43 -0700, lorlarz wrote:
On Aug 21, 12:55Â*pm, Jeremy J Starcher <r3...@yahoo.comwrote:
>On Tue, 19 Aug 2008 11:39:11 -0700, lorlarz wrote:
Some day when YOU, like me, start making actual full-blown Javascript
applications and stop being script kiddies, you will appreciate this
point. People: start making Javascript Applications!!

Full blown applications in Javascript?

Like a compiler and virtual machine?

Like a web-front to an online store? Â*(Complete with full non-js
fallback?)

Or perhaps the data editor, including an image map generator?

And that is just the stuff that runs in the browser.

I have an entire interactive parts catalogue lookup and cross reference
written in Javascript and that does NOT run in a web browser, though it
does use Microsoft's IE object as its GUI.
And, finally (with respect to your material quoted below):
Javascript's MAIN use is for use in the web browsers (check your
history, if you are unclear about this). Â*The language was in NO WAY
designed to be
independent of the DOM, etc. Â*ECMA standards NOTWITHSTANDING.


I invite you to share one or more of your applications, with well-
commented code
or explanatory text so many can learn from your techniques, design
patterns, etc.
Please contribute to our knowledge:
http://groups.google.com/group/realcomplangjsapps
Considering that I *HAVE* already shared the compiler, in this group, it
is free for the examination by anyone who chooses to do so.

I must respectfully turn down your offer to join a google-groups.

http://mopedepot.com/jjs/mote/motevm/mote.html

While I am proud of it, and to my knowledge it does not contain any
glaringly bad code, there are a few areas that could be re-written based
upon what I've learned about Javascript style in the mean time.

(In particular, It uses too many new Array() instead of []'s.)

6188 lines total, though about 300 of those are libraries I borrowed.
Aug 22 '08 #77

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Danny Lu | last post by:
Hi, can anyone tell me where I can get a good perl book? TIA Dan
22
by: Jon Skeet [C# MVP] | last post by:
I'm looking to write a C# book fairly soon, and the publisher I've approached wants me to do a bit of market research to find out what people like and don't like in this kind of book. I've read...
4
by: dannysh | last post by:
Hi all, I need a recomendation on a good book to learn PHP/MYSQL. I want to learn php with mysql. The problem is that I don't have any knowledge on mysql and generally in relational...
3
by: Chris Frost | last post by:
Hello all, I had a look through the FAQ and searched this forum before posting. The closest I came to an answer was this post by Dr J R Stockton from 2006. But as he/she said, the answer depends on...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.