{"id":18,"date":"2008-01-21T00:01:31","date_gmt":"2008-01-21T07:01:31","guid":{"rendered":"http:\/\/www.wambooli.com\/blog\/2008\/01\/21\/filename-organization-part-i\/"},"modified":"2008-02-02T12:07:46","modified_gmt":"2008-02-02T19:07:46","slug":"filename-organization-part-i","status":"publish","type":"post","link":"https:\/\/www.wambooli.com\/blog\/?p=18","title":{"rendered":"Filename Organization, Part I"},"content":{"rendered":"<p>Spaces? Underlines? Hyphens? Periods? Mixed Case? So many choices!<\/p>\n<p>I&#8217;m speaking about filenames, of course. Folks new to computers don&#8217;t think about these things today, but in days gone by naming a file was an 8-dot-3 ordeal. That 8-dot-3 thing was the old DOS (and Windows) filename format: only 8 characters for the name, plus a dot and optional three character extension. Naming files was hell.<\/p>\n<p><code>filename.hll<\/code><\/p>\n<p>Today you have lots of room to name files; over 200 characters for a filename alone. Extensions can be 3, 4 or more characters. Yes, you can use spaces in a filename, which was pretty much unhead of years back. But spaces aren&#8217;t always kosher. There are still instances where typing a filename with a space causes the operating system and other programs to puke.<\/p>\n<p>The solution, of course, is not to use spaces. I find myself avoiding them. (For some reason I keep using the terminal window; spaces at the command prompt present special problems.) In their stead I use one of three alternatives:<\/p>\n<p><strong>The underline.<\/strong> This is the most common replacement for the space, even recommended in some computer books. It works, too: <code>file name<\/code> becomes <code>file_name<\/code>, which still carries a similar look. The problem with the underline, however, is that it nearly disappears when the name becomes a link: <code>file_name<\/code>.<\/p>\n<p><strong>The hyphen.<\/strong> My first choice for replacing a space in a filename is the hyphen. It&#8217;s easy to type and it serves a similar visual purpose as the underline: <code>file name<\/code> becomes <code>file-name<\/code>. The hyphen is especially useful to me when writing dates in filenames: <code>1-21-08<\/code>. Remember that the filename <code>1\/21\/09<\/code> is <em>illegal<\/em> because the \/ (slash) is a pathname separator.<\/p>\n<p><strong>The period.<\/strong> A choice I enjoy playing with is the period. Using a period is tricky, however, because periods traditionally separate the filename from the extension. It&#8217;s that extension that the operating system uses to identify the file type \u2014 so you have to be careful!<\/p>\n<p><a href=\"http:\/\/www.wambooli.com\/blog\/2008\/01\/23\/\">Next issue<\/a>, I&#8217;ll show you some benefits to using such symbols to organize your files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spaces? Underlines? Hyphens? Periods? Mixed Case? So many choices! I&#8217;m speaking about filenames, of course. Folks new to computers don&#8217;t think about these things today, but in days gone by naming a file was an 8-dot-3 ordeal. That 8-dot-3 thing was the old DOS (and Windows) filename format: only 8 characters for the name, plus [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-main"],"_links":{"self":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":0,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}