title: What is the difference between __dirname and ./ in node.js?
body: <p>When programming in Node.js and referencing files that are located somewhere in relation to your current directory, is there any reason to use the <code>__dirname</code> variable instead of just a regular <code>./</code>? I've been using ./ thus far in my code and just discovered the existence of <code>__dirname</code>, and essentially want to know whether it would be smart to convert my ./'s to that, and if so, why that would be a smart idea.</p>