Actually a single function per module is enough.

If you need namespaces, we got your back. It's called npm. When you
require("com.mycompany.object.myframework") there isn't going to be any
conflicts at all!

If you want classes then we have prototypes, use those. If you want
inheritance then your optimizing your code and you should tolerate the
bullshit for the sheer pleasure of speed. Even if your inheriting
`require("util").inherits` is pretty sweet.

Aggressive encouragement of OO over functional is just unnecessarily
forcing your opinions on others. If you want go work in an OO only walled
garden feel free to do so, just don't expect any traction.

The main problem is that whatever your trying to do, the ship has sailed,
there are 20k commonJS modules in npm. You need to use commonJS for interop
or rewrite everything.


On Thu, Jan 31, 2013 at 9:24 PM, <[email protected]> wrote:

> If JS has class syntax at begining, perhaps there would be no discuss
> today.
>
> I think the two styles be harmony and unity, like my example: a class's
> event listening method. I use Java and JS(many other languages) for long
> time, but I found the two languages core syntax and behavior very charming,
> if we make JS(a functional style language) has more class features, then we
> will see more elegant and clean JS code.
>
> So, JCS help JS define class: single inheritance, multiple mixs. But not
> JDK, even not JDK core, just like Java Class System.
>
> There are a lot of the "Don't even" Gentlemen:
> *I don‘t even think Class be needed. Module be enough.
> I don‘t even think Module be needed. One main function be enough.
> I don‘t even think prgromming language be needed. “0” and "1" be enough.
> I don‘t even think app/widget/game development be needed. Say "Open
> Sesame" to my computer be enough.*
>
>
>>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to