On Apr 16, 2012, at April 16, 201211:13 AM, Tim Caswell wrote: > I laughed at the part where Mikeal says that connect doesn't deserve to > exist. I agree that database connectors shouldn't be packaged (primarily) as > middleware layers, but remember the reason I designed connect in the first > place. There were several competing http frameworks that were duplicating > the same logic over and over with zero code reuse or sharing.
There is still zero re-use between frameworks using connect. flatiron has a wrapper for connect middleware but none of the other frameworks support connect. > > So what's better? How can someone write an http-auth library that integrates > with any node http server? Also what about a more generic plugin system for > node in general where plugins can provide API services and consume other > services? https://github.com/c9/architect I think that, the framework should provide a place for you to put a handler that "does auth". This should be a function that takes a callback. The framework should probably instrument some kind of buffering while you do this. This might seem like more work, finding each use case and providing API, rather than having a more generic plugin system, but it also means that some handles can buffer incoming data and some might not by design. It also means that is one times out the framework knows exactly what failed. > > On Mon, Apr 16, 2012 at 12:37 PM, NodeUp <[email protected]> wrote: > We recorded a special framework author throwdown for NodeUp with the > authors of Geddy (http://geddyjs.org), Tako (https://github.com/mikeal/ > tako), Flatiron (http://flatironjs.org) and SocketStream (https:// > github.com/socketstream/socketstream). > > If you're interested you can listen to it here, http://nodeup.com/seventeen. > > -- > 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 -- 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
