20251128205912 push
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<article>
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">Re: Strong Opinions On URL Design</h1>
|
||||
<p class="date">2025-03-11T00:00:00-08:00</p>
|
||||
<p class="date">2025-03-11 00:00:00 -08:00</p>
|
||||
</header>
|
||||
<p>Vale wrote <a href="https://vale.rocks/posts/strong-opinions-on-url-design">an opinionated blog post</a> on the following list of things to consider when designing a URL.</p>
|
||||
<ol>
|
||||
@@ -19,7 +19,7 @@
|
||||
</ol>
|
||||
<p>I do agree with some of these, but I also ultimately feel that people can and should do whatever they want with their website. Doing so adds a personal touch to each website, they don't all need to be the same. Vale's guidelines are great suggestions for creating URLs that are easily understood and shareable. But I do disagree with some of the guidelines and I wanted to share why I disagree.</p>
|
||||
<h2>Hyphens, Not Underscores</h2>
|
||||
<p>Underscores do require an extra and awkward keypress to type, but they are a useful symbol. I use hyphens AND underscores in my file and directory names, because they each represent a different function in a joined string of characters. Underscores join strings of characters into a single string, and hyphens separate strings from each other. This is useful if you are selecting text with a mouse and only want to select a specific string, or to visually separate different concepts in a file name, such as the date and title of a file.</p>
|
||||
<p>Underscores do require an extra and awkward keypress to type, but they are a useful symbol. I use hyphens AND underscores in my file and directory names, because they each represent a different function in a joined string of characters. Underscores join strings of characters into a single string, and hyphens separate strings from each other. his is useful if you are selecting text with a mouse and only want to select a specific string, or to visually separate different concepts in a file name, such as the date and title of a file.</p>
|
||||
<p>For example, all of my mix files include the name of the collection, the date, and occasionally the time it was recorded. If I want to copy the text of the name, I can double click to select that underscored string. I would have to click and drag if the words were hyphenated. Of course clicking and dragging the cursor isn't a big deal, but a double click is more efficient than clicking and dragging. Use the following text to try selecting strings of underscored and hyphenated text:</p>
|
||||
<p>Underscored: <code>date_string-title_string-other_string</code></p>
|
||||
<p>Hyphenated: <code>date-string-title-string-other-string</code></p>
|
||||
|
||||
Reference in New Issue
Block a user