I think it's more that nodejs is attracting server-side developers who have
been accustomed to writing java-style interfaces & abstract classes so they
feel strange when the language doesn't support them.  I haven't seen that
type of request in ruby/python server-side world.


On Sun, Jul 1, 2012 at 8:47 AM, Dave Horton <[email protected]> wrote:

> Since javascript provides no explicit support for the concept of
> interfaces (but, as always, probably a hundred ways to roll your own), what
> is the node best practice or recommendation for defining an interface?
>
> As background, I am building some node modules that will interwork with
> each other, yet be loosely coupled.  And I want to allow others to plug in
> new modules into this mini framework in the future.  So defining an
> abstract interface for some of the different sets of functionality seems to
> be a good way to go.  I have the use of utils.inherit, but I'm not looking
> for inheritence here so that is not the solution I want.  I want to be able
> to define interfaces, and then create objects which declaratively implement
> one or more interfaces.
>
> (I realize this is not a node question, per se, rather more of a generic
> JS question, but I think by pushing forward into the world of more complex
> server-side development node module developers would encounter this issue
> and I would like to be aware of and conform to what bp exist)
>
> --
> 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
>

-- 
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

Reply via email to