There's a common design pattern in the Node.js community that has been bothering me for some time since it results in less readable code. The issue relates to designing modules that export a singlefactory function. Let's take a look at some example code using the popular express module:
Your new post is loading...