Perhaps you should also copy the CommonJS list with this as well...
comm...@googlegroups.com
Same here.
--
Rasmus Andersson
When I write javascript for web browsers I design it quite differently
then when I write it for a modern JS environment like Node. For
instance when writing code for the browser you have to deal with a
multitude of JavaScript versions — some can do [1,2,3].map....filter,
some can't. Some breaks here, others break there. I always end up with
"dirty" code. But, when my target is Node or some other modern host
(like recent WebKit) I can have FUN writing pretty code which will
"run in all modern js envs". And as the minimalistic programmer I am,
dependencies equal sadness, so I want my code to be (mostly)
independent.
Writing stuff for the web will always be a game of compatibility
rather than "pretty" code (given there's a freedom of web browsers).
This can almost be compared to writing C (with libc) — which was
intended to be "cross platform programming" — e.g. you write some code
for BSD which _should_ run on Linux, but of course doesn't, so you end
up with 15 files and hundreds of ifdefs.
Point being let's be pragmatic about this. I'm a fan of CommonJS and
personally like idealistic design (although I've learned the hard way
that idealistic systems seldom work. John Gall is probably laughing at
me).
:)
--
Rasmus Andersson
Don't get me wrong here, but this might be just me (Caution: ranting):
When I write javascript for web browsers I design it quite differently
then when I write it for a modern JS environment like Node. For
instance when writing code for the browser you have to deal with a
multitude of JavaScript versions — some can do [1,2,3].map....filter,
some can't. Some breaks here, others break there. I always end up with
"dirty" code. But, when my target is Node or some other modern host
(like recent WebKit) I can have FUN writing pretty code which will
"run in all modern js envs". And as the minimalistic programmer I am,
dependencies equal sadness, so I want my code to be (mostly)
independent.