title: Should I save a path with or without a trailing slash at the end, what's the convention
body: <p>I'm always confuse whether I should add a trailing slash at the end of a path, and often mix it up, leading to some file no found.
  Example with drupal:</p>
  
  <pre><code>$base_theme = '/sites/all/themes/myTheme/';
  </code></pre>
  
  <p>or </p>
  
  <pre><code>$base_theme = '/sites/all/themes/myTheme';
  </code></pre>
  
  <p>The image path could extend the base theme:</p>
  
  <pre><code>$base_image = $base_theme.'images/';
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$base_image = $base_theme.'/images';
  </code></pre>
  
  <p>Is there any convention? Or I can pick which one I prefer?</p>
  
  <p>I would choose to finish all path with a trailing slash since too many slash is better than no slash.</p>