title: Why use path.join() instead of just static('public')
body: <p>In all the node express tutorials I've read the following syntax is used to create the public directory:</p>
  
  <pre><code>var path = require('path');
  app.use(express.static(path.join(__dirname, 'public')))
  </code></pre>
  
  <p>However the following works just fine:</p>
  
  <pre><code>app.use(express.static('public'))
  </code></pre>
  
  <p>So why would I use the path module instead ?</p>