All, I've never really spent too much time evangelizing this project, but it would be great if you guys could have a look at this and let me know what you think. Its called mochiscript (https://github.com/ jeffsu/mochiscript). Its basically javascript + syntactic sugar (foreach, heredocs, shorthand functions, string interpolation) along with several OOP niceties (inheritance, mixins, etc...). Another way of looking at it is coffeescript with very little deviation from the javascript syntax.
We've been using node for about 6 months in production servicing over 2 million api calls a day at Factual (max throughput of about 800 qps with 4 ec2 c1.xlarge machines). We've actually been using mochiscript for about 4 years on our first grid project at factual (about 4k lines of javascript) in 2008. Since then, Factual has allowed me to open source it. I recently rewrote it from the ground up and it supports ".ms" extensions just like ".coffee" for coffeescript. I use it for several other open source projects. We also use it in on the browser side in conjunction with Rails. If you have any interest in OOP + nodejs, this might work for you. It would be great to get feedback. -Jeff On Mar 30, 5:45 am, Phoscur <[email protected]> wrote: > JavaScript is objectoriented and functional, node and its API are mostly > functional. For a simple project, you wont need OOP at all (that would > be development overhead). When you have a complex business logic and > want expandability, for that part it might be a good idea to chose an > objectoriented approach. > > Am 29.03.2012 11:53, schrieb Chirag A: > > > > > > > > > can anyone pls suggest a NodeJS sample application which implements or > > uses OOP fundamentals. > > > Thank You > > -- > > 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
