Notes of a Pragmatic Geek

by Daniel Khan


The Event Loop and Non-Blocking I/O in Node.js

Node.js is written in C/C++ and JavaScript and basically lets you run JavaScript code without a browser. It was created by Ryan Dahl in 2009. “Why did he choose JavaScript?(!)”, you might ask. Well, first of all JavaScript is just a programming language. So – why not? It’s well integrated into browsers and so we are tempted to see […]

Why is Node.js so popular?

Node.js is constantly gaining popularity in the tech community and even big players like LinkedIn, PayPal, Walmart or eBay (to name only a few) already added it to their stack. This is interesting because often a new kid on the tech block gets much attention from small businesses and startups (look at Rails) but here established brands shift services to a new […]

node.js – how exports and module.exports works

When starting with node.js the way modules work seems a little awkward. Especially the difference between exports and module.exports causes much confusion. Somehow we tend to think that exports is the global/important variable and module.exports is something local to the module and has less importance.