<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: To underscore or not to underscore?</title>
	<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore/</link>
	<description>Comments on Ask MetaFilter post To underscore or not to underscore?</description>
	<pubDate>Thu, 21 Dec 2006 16:09:49 -0800</pubDate>
	<lastBuildDate>Thu, 21 Dec 2006 16:09:49 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: To underscore or not to underscore?</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore</link>	
		<description>Is there an advantage to having an underscore in a file name? &lt;br /&gt;&lt;br /&gt; I&apos;m devising a naming standard for some time tracking worksheets at work.  For some reason, many years ago I started to put underscores in file names containing dates, like this:&lt;br&gt;
&lt;br&gt;
20061223_pdb weeklytimesheet.xls&lt;br&gt;
20061223_tjd weeklytimesheet.xls&lt;br&gt;
&lt;br&gt;
instead of just naming them like this:&lt;br&gt;
&lt;br&gt;
20061223pdb weeklytimesheet.xls&lt;br&gt;
20061223tjd weeklytimesheet.xls&lt;br&gt;
&lt;br&gt;
the belief being that the underscore will allow for more accurate sorting (and easier finding) of the files in Windows Explorer.  I don&apos;t know where I got the underscore-is-better notion, but I&apos;ve done it forever; a coworker challenged me on it today, and I had no concrete reason why it would be better.&lt;br&gt;
&lt;br&gt;
Is there an actual reason why adding an underscore is better, or is it just a stylistic habit I acquired?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.53645</guid>
		<pubDate>Thu, 21 Dec 2006 16:05:50 -0800</pubDate>
		<dc:creator>pdb</dc:creator>
		
			<category>excel</category>
		
			<category>organize</category>
		
			<category>windowsexplorer</category>
		
			<category>underscore</category>
		
	</item> <item>
		<title>By: cschneid</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808297</link>	
		<description>The only thing the underscore does is make it easy to use at the command line.  In unix style operating systems where I spend a lot of time managing my files at the command line, I use underscores.&lt;br&gt;
&lt;br&gt;
Note that batch files will need extra quoting of file arguments if there are spaces in them.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808297</guid>
		<pubDate>Thu, 21 Dec 2006 16:09:49 -0800</pubDate>
		<dc:creator>cschneid</dc:creator>
	</item><item>
		<title>By: public</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808301</link>	
		<description>Some file / operating systems don&apos;t support spaces in filenames, but do support underscores.&lt;br&gt;
&lt;br&gt;
If you are working on the command line it is easier to type&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;emacs file_with_underscores.txt&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
than&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;emacs file\ with\ underscores.txt&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
but tab completion makes that a bit of a non-issue, just ugly.&lt;br&gt;
&lt;br&gt;
It won&apos;t have much effect on sorting unless you are doing something cunning that relies on _. Which doesn&apos;t sound likely.&lt;br&gt;
&lt;br&gt;
Basically, what you are doing is just as random and arbitrary as using a space.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808301</guid>
		<pubDate>Thu, 21 Dec 2006 16:11:28 -0800</pubDate>
		<dc:creator>public</dc:creator>
	</item><item>
		<title>By: i love cheese</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808302</link>	
		<description>If the dates are always a fixed length (is January &quot;01&quot; or &quot;1&quot;?) there doesn&apos;t appear to be much value in the underscore.  If the dates can vary in length, then the underscore could serve a purpose.&lt;br&gt;
&lt;br&gt;
It may be slightly easier to read the filenames with the underscore.  The spaces are the hassle, as you end up having to use quote marks in a command line to refer to them.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808302</guid>
		<pubDate>Thu, 21 Dec 2006 16:11:50 -0800</pubDate>
		<dc:creator>i love cheese</dc:creator>
	</item><item>
		<title>By: caddis</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808307</link>	
		<description>It&apos;s a carryover from DOS which did not allow spaces in file names.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808307</guid>
		<pubDate>Thu, 21 Dec 2006 16:15:55 -0800</pubDate>
		<dc:creator>caddis</dc:creator>
	</item><item>
		<title>By: -harlequin-</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808314</link>	
		<description>As public says, underscores reduced the chances of trouble, since files might in future be copied, or transferred to different systems, and some systems wouldn&apos;t handle files with a space in the name.&lt;br&gt;
&lt;br&gt;
If you&apos;re working on files that might end up passing through a whole lot of different machines and operating systems (such as a production pipeline), it&apos;s still a useful thing to do.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808314</guid>
		<pubDate>Thu, 21 Dec 2006 16:23:24 -0800</pubDate>
		<dc:creator>-harlequin-</dc:creator>
	</item><item>
		<title>By: kirkaracha</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808325</link>	
		<description>On a web site, it&apos;s &lt;a href=&quot;http://weblog.philringnalda.com/2004/04/22/underscores-are-bad-mmkay&quot;&gt;better&lt;/a&gt; for search results to use hyphens instead of underscores. Because, after decades of underscores being commonly used in filenames, &lt;a href=&quot;http://www.mattcutts.com/blog/dashes-vs-underscores/&quot;&gt;Google&lt;/a&gt; et. al. &lt;a href=&quot;http://www.webrankinfo.com/english/seo-news/hyphen-or-underscore.php&quot;&gt;can&apos;t see the words&lt;/a&gt; separated by underscores as separate words.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808325</guid>
		<pubDate>Thu, 21 Dec 2006 16:35:19 -0800</pubDate>
		<dc:creator>kirkaracha</dc:creator>
	</item><item>
		<title>By: delmoi</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808329</link>	
		<description>&lt;i&gt;Some file / operating systems don&apos;t support spaces in filenames, but do support underscores.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Except his files have spaces &lt;b&gt;and&lt;/b&gt; underscores.  The question is whether he should use an underscore rather then an empty string between a date and someone&apos;s initials. &lt;br&gt;
&lt;br&gt;
It seems easier to scan to me, but why not just use a space and be consistent, like this: &quot;20061223 pdb weeklytimesheet.xls&quot;&lt;br&gt;
&lt;br&gt;
Actually what you should do is use an Access database for this stuff.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808329</guid>
		<pubDate>Thu, 21 Dec 2006 16:38:11 -0800</pubDate>
		<dc:creator>delmoi</dc:creator>
	</item><item>
		<title>By: allterrainbrain</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808344</link>	
		<description>The underscore is irrelevant; it&apos;s making sure your filenames have NO SPACES that will make them most broadly/easily usable (especially important if they, or anything they&apos;ll be converted into in the future, might be used on the web).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808344</guid>
		<pubDate>Thu, 21 Dec 2006 17:07:35 -0800</pubDate>
		<dc:creator>allterrainbrain</dc:creator>
	</item><item>
		<title>By: chillmost</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808361</link>	
		<description>Underscores are okay. Or use dashes. Don&apos;t use spaces.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808361</guid>
		<pubDate>Thu, 21 Dec 2006 17:31:20 -0800</pubDate>
		<dc:creator>chillmost</dc:creator>
	</item><item>
		<title>By: flug</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808364</link>	
		<description>If you ever need to put a file online or on an intranet, etc., spaces are pretty ugly, hard to type, and hard to read:&lt;br&gt;
&lt;br&gt;
a%20sample%20web%20page%20with%20spaces.html&lt;br&gt;
&lt;br&gt;
That&apos;s one reason people tend to use hyphens or underscores instead.  CamelCase is another option--better for readability but not good for searching, because the words can&apos;t be parsed automatically.&lt;br&gt;
&lt;br&gt;
Personally I would go for:&lt;br&gt;
&lt;br&gt;
  20061223-pdb-weekly-time-sheet.xls</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808364</guid>
		<pubDate>Thu, 21 Dec 2006 17:33:07 -0800</pubDate>
		<dc:creator>flug</dc:creator>
	</item><item>
		<title>By: Hildago</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808367</link>	
		<description>flug&apos;s example of how to do it is precisely how I do it myself.&lt;br&gt;
&lt;br&gt;
I prefer hyphens to underscores, because if the filename is ever converted into a hyperlink, sometimes you can&apos;t see the underscores anymore.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808367</guid>
		<pubDate>Thu, 21 Dec 2006 17:40:46 -0800</pubDate>
		<dc:creator>Hildago</dc:creator>
	</item><item>
		<title>By: phil</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808369</link>	
		<description>Not sure where everyone is comming up with comments about spaces. The question was should I use _ or nothing. The only advantage I can see to the _ is that it can be used to delimate the date part of a file name. It would need to be at the beggining of the file name to be of any real help sorting files. Unless you have muliple copies of files with the same name created on different dates.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808369</guid>
		<pubDate>Thu, 21 Dec 2006 17:46:34 -0800</pubDate>
		<dc:creator>phil</dc:creator>
	</item><item>
		<title>By: SirStan</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808376</link>	
		<description>Just a note -- We don&apos;t use initials as they quickly conflict (atleast in our 150 person company).  I would suggest adopting a different standard, such as network username, or (what we do) staff ID.&lt;br&gt;
&lt;br&gt;
Makes it easier to work with later as well if you can key everything against a unique ID.  (Re: basic database normalization)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808376</guid>
		<pubDate>Thu, 21 Dec 2006 17:59:15 -0800</pubDate>
		<dc:creator>SirStan</dc:creator>
	</item><item>
		<title>By: IronLizard</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808428</link>	
		<description>Another thing, when using the windows command line, filenames with space just don&apos;t work very well (at all). You have to use the shortened version, which you won&apos;t know without using DIR command with whatever forgotten switch exposes them. Some crap like FILE~1.XLS. Long filename support at the command line is crap.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808428</guid>
		<pubDate>Thu, 21 Dec 2006 19:06:22 -0800</pubDate>
		<dc:creator>IronLizard</dc:creator>
	</item><item>
		<title>By: odinsdream</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808447</link>	
		<description>Though it isn&apos;t exactly intuitive, you &lt;em&gt;can&lt;/em&gt; figure out the DOS version of a filename through some simple logic. If it&apos;s longer than eight characters, it&apos;s going to get truncated and end with a ~1 after the first six characters, because ~1 counts as two characters out of the eight. If there is another file in the same directory that would also get shortened to the same short name, it would be ~2, and so on, according to the directory sorting, which is probably based on the ASCII character code, but for normal use, just consider it alphabetic.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808447</guid>
		<pubDate>Thu, 21 Dec 2006 19:43:18 -0800</pubDate>
		<dc:creator>odinsdream</dc:creator>
	</item><item>
		<title>By: IronLizard</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808484</link>	
		<description>DIR /X</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808484</guid>
		<pubDate>Thu, 21 Dec 2006 20:55:10 -0800</pubDate>
		<dc:creator>IronLizard</dc:creator>
	</item><item>
		<title>By: dammitjim</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808502</link>	
		<description>If we go exactly by the examples that the poster used to illustrate the two basic options (20061223_pdb weeklytimesheet.xls vs. 20061223pdb weeklytimesheet.xls), then the issue of spaces doesn&apos;t factor, as phil correctly stated. Both options contain a space. &lt;br&gt;
&lt;br&gt;
The files are going to sort in exactly the same way whether you use an underscore or not, as long as the use is consistent. An underscore is a character just like any other, and has a value for computing sort order, but if the same character is used in that position always, it is essentially skipped and Windows Explorer compares the values of the next character to the right. The underscore would help visual scannablility of the date information, though, since it  separates the date from the rest of the filename.&lt;br&gt;
&lt;br&gt;
Use of spaces IS a valid subject when discussing filename habits, however. Mac users and most Windows users may never run into situations where it matters, but sometimes it can. Unix doesn&apos;t like spaces in filenames, which is why files posted on the internet get &quot;%20&quot; where all the spaces were - &lt;a href=&quot;http://www.blooberry.com/indexdot/html/topics/urlencoding.htm&quot;&gt;that&apos;s the control code for &quot;space&quot;&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Other situations where spaces can break things: some &lt;a href=&quot;http://en.wikipedia.org/wiki/Webdav&quot;&gt;WebDAV&lt;/a&gt; implementations don&apos;t like spaces (the Mac won&apos;t read file or directory names that contain spaces on WebDAV volumes), pasted URLs or other network locations as links in email frequently get mangled if they contain spaces and are long enough to wrap, since the mail program helpfully inserts a line break where the space is. And so on.&lt;br&gt;
&lt;br&gt;
I&apos;ve just gotten myself out of the habit of using spaces in file and directory names, using underscores or CamelCase instead, since there&apos;s always something that doesn&apos;t like it. But then I use Linux and network storage a lot, YMMV.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808502</guid>
		<pubDate>Thu, 21 Dec 2006 21:17:25 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
	</item><item>
		<title>By: pdb</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808508</link>	
		<description>&lt;i&gt;Actually what you should do is use an Access database for this stuff.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
I wholeheartedly agree, but my company has banned Access databases for small applications, because of the number of them that have sprung up over the years.  They prefer Oracle-based apps, which are fine but for a team of six people tracking weekly time, that seems a bit overkillish.&lt;br&gt;
&lt;br&gt;
&lt;i&gt;Just a note -- We don&apos;t use initials as they quickly conflict (atleast in our 150 person company).&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
I also agree with this, because I have problems with initials from past jobs, but this is for a team of six people that won&apos;t change until it&apos;s disbanded 7 months from now, so I&apos;m not so worried about conflicts.&lt;br&gt;
&lt;br&gt;
Thanks to everyone for the input, I appreciate all the answers...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808508</guid>
		<pubDate>Thu, 21 Dec 2006 21:26:36 -0800</pubDate>
		<dc:creator>pdb</dc:creator>
	</item><item>
		<title>By: ill3</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808525</link>	
		<description>To put a face on what phil has said :&lt;br&gt;
&lt;br&gt;
dir *_pdbwhatever.xls&lt;br&gt;
&lt;br&gt;
Gets you all pdbwhatever files regardless of date&lt;br&gt;
&lt;br&gt;
and &lt;br&gt;
&lt;br&gt;
dir 20061223_* &lt;br&gt;
&lt;br&gt;
Gets you all files of that date regardless of name&lt;br&gt;
&lt;br&gt;
Somewhat useful.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808525</guid>
		<pubDate>Thu, 21 Dec 2006 22:08:05 -0800</pubDate>
		<dc:creator>ill3</dc:creator>
	</item><item>
		<title>By: Deathalicious</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808555</link>	
		<description>That&apos;s some cohones, man, claiming your answer to be the best.&lt;br&gt;
&lt;br&gt;
To expand on &lt;a href=&quot;http://ask.metafilter.com/mefi/53645#808525&quot;&gt;ill3&apos;s answer&lt;/a&gt;, technically you *could* just do&lt;br&gt;
&lt;br&gt;
dir *pdbwhatever.xls&lt;br&gt;
and&lt;br&gt;
dir 20061223*&lt;br&gt;
&lt;br&gt;
BUT if naming (or timestamping) changed, you would also be matching&lt;br&gt;
&lt;br&gt;
20061223_apdbwhatever.xls&lt;br&gt;
and&lt;br&gt;
2006122308_otherfile.xls&lt;br&gt;
&lt;br&gt;
With the underscore, there is no danger of this happening.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808555</guid>
		<pubDate>Thu, 21 Dec 2006 22:52:35 -0800</pubDate>
		<dc:creator>Deathalicious</dc:creator>
	</item><item>
		<title>By: antifuse</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#808607</link>	
		<description>There really is no benefit (sorting-wise, anyway) to using the underscore.  It makes it a ton easier to read though, compared to not having it at all.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-808607</guid>
		<pubDate>Fri, 22 Dec 2006 01:45:44 -0800</pubDate>
		<dc:creator>antifuse</dc:creator>
	</item><item>
		<title>By: blue_beetle</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#811316</link>	
		<description>please be aware that many people that use gui base file apps find underscores to be one of the most annoying things ever. I&apos;d rather have 3 character filenames than underscores.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-811316</guid>
		<pubDate>Tue, 26 Dec 2006 21:56:28 -0800</pubDate>
		<dc:creator>blue_beetle</dc:creator>
	</item><item>
		<title>By: jamjammo</title>
		<link>http://ask.metafilter.com/53645/To-underscore-or-not-to-underscore#811344</link>	
		<description>From a web developer point of view:&lt;br&gt;
when a filename has a space in it, it is read by the browser as this: %20&lt;br&gt;
&lt;br&gt;
I created a small example for you here: http://jammo.net/filename.html&lt;br&gt;
&lt;br&gt;
I just got into the habit of always using underscores for my file naming, but its entirely up to you.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.53645-811344</guid>
		<pubDate>Tue, 26 Dec 2006 22:48:20 -0800</pubDate>
		<dc:creator>jamjammo</dc:creator>
	</item>
	</channel>
</rss>
