I've been attempting to write a nodejs server using express for a project I'm building. I ran into a problem with exports and module.exports, which confused me until I read this article: http://www.hacksparrow.com/node-js-exports-vs-module-exports.html.
What I would like to know (assuming that the article is correct) is WHY the exports object shortcut is the norm, instead of just writing directly to module.exports. The article does imply that there is a difference between the two (and I found out myself by overwriting exports once), but why use the exports object if it's just a shortcut to populate the module.exports object?
This may be stupid, but I'm curious. Please, help me learn something new today. :-)