Profile cover photo
Profile photo
Douglas Crockford
19,764 followers -
_ __ ___ ____ _____ In the Twenty First Century!
_ __ ___ ____ _____ In the Twenty First Century!

19,764 followers
About
Douglas's interests
Douglas's posts

It ought to be remembered that there is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introduction of a new order of things. Because the innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may do well under the new. This coolness arises partly from fear of the opponents, who have the laws on their side, and partly from the incredulity of men, who do not readily believe in new things until they have had a long experience of them.

[Niccolò Machiavelli, The Prince, Chapter 6, 1513]

When someone says "I want a programming language in which I need only say what I wish done," give him a lollipop.

[Alan Perlis, SIGPLAN Notices Vol. 17, No. 9, September 1982]

Both canceled and cancelled are acceptable spellings, but the first is much more usual.

Note that cancelation is widely viewed as an error, while cancellation is acceptable.

So I am going with cancelled. And travelled.

Post has attachment
Adventure was the first graphic adventure game. It was my favorite game on the VCS 2600. The guys who programmed that machine were heroes.

Post has attachment
Thimbleweed Park is here.

JSLint's whitespace rules have changed. It is recommended that statements be broken after [ { ( in the K&R fashion. Plus 8 line breaking is only allowed in statements that do not contain [] {} or ().

option.white will suppress these warnings.

Post has attachment
Consider this fragment of crap code:

if ( ++p == pe )
goto _test_eof;

* ++
* goto
* missing {}
* dangling _
* major security exploit

Quality matters.

Post has shared content
More computing sins are committed in the name
of efficiency (without necessarily achieving it)
than for any other single reason--including blind
stupidity.

William A. Wulf

More computing sins are committed in the name
of efficiency (without necessarily achieving it)
than for any other single reason--including blind
stupidity.

William A. Wulf

Post has attachment
JSLint currently allows two conventions of indentation.

There is the closed form, where you can break a line pretty much anywhere and indent the continuation 8 space.

a = method(b,
c, d);

And there is the open form in which you break after ( { or [, and the closing ) } or ] will be aligned with the beginning of the thing, and the stuff in between is indented 4. It generalizes the K&R block convention to object literals, array literals, and parameter/argument lists.

a = method(
b,
c,
d
);

I have been receiving complaints that JSLint should not like the old closed form. What say you?
55 votes
-
votes visible to Public
38%
Allow both forms
62%
Allow only the open form
Wait while more posts are being loaded