vendredi 3 juillet 2015

Modular Pattern vs Prototype - Nodejs?

I am working in Nodejs. I had worked in modular pattern. It is easy and simple to code.

Note

My colleague told Prototype pattern is best approach for Nodejs and Modular pattern is slow.

My Code Sample

module.exports = {

                      get : funcntion(){
                        //stuff
                      },

                      set : function(){
                        //stuff
                      }
                  }

Question

What pattern would be the best for realtime web application or generally an application context with Nodejs?

Aucun commentaire:

Enregistrer un commentaire