The question is really simple: should a path to a directory always contain a slash at the end?
say: /path/to/directory/ over /path/to/directory.
Linux/Unix seem to accept both. Most applications and libraries on linux follow this. e.g. a <Directory /home/someproject/foo/code> works just fine.
In programming, say PHP I can do a dir on both directories with a slash-at-the-end. and those without. PHP's documentation has examples that omit the / http://www.php.net/manual/en/class.dir.php
In Ruby the same: I can use /path/to/dir/ and /path/to/dir in Dir?
What is the "best practice"? Is there a performance-penalty when using one of both? Are there edge-cases where both work different, or one of both will break?