Topic: Which is better? (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=30228" title="Pages that link to Topic: Which is better? (Page 1 of 1)" rel="nofollow" >Topic: Which is better? <span class="small">(Page 1 of 1)</span>\

 
zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

IP logged posted posted 04-27-2008 20:29 Edit Quote

I was looking at some URLs on some Google results and saw that some used dashes while some used underscores and it got me wondering...

In filenames and URLs, which is better for word separators: dashes "-" or underscores "_"?

Is it just preference or is there a technical reason why one is better than the other? I've been using underscores as my standard ever since I started in web design.

Which one do you use and why?

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 04-27-2008 20:44 Edit Quote

underscores are hard to detect when the text is underlined, as is often the case with links

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

IP logged posted posted 04-28-2008 02:25 Edit Quote

None of my URLs have spaces in them, so I guess I bypassed this problem entirely as far as URLs go. For files on my computer (Word, etc.), I use underscores or just plain spaces, though. Hyphens* are for compound words or breaking words at the end of a line. Grumble has a point about underscores not being easily detectable when underlined (since that's technically what the underscore is: an underline), though. If I were faced with a situation where I did have URLs that needed spaces, I'd probably just eliminate the spaces altogether and stick the words together.

* (Those are hyphens you're seeing in the results, by the way, not dashes--or, if we want to be really pedantic, we can call them by their proper name: the hyphen-minus)


___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | the Fellowship of Sup

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 04-28-2008 02:32 Edit Quote

I tend to prefer underscore as they seem less intrusive. The fact that they blend with the underline of hyperlinks is a plus for the legibility IMO.

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 04-28-2008 13:30 Edit Quote

emdash, endash, hyphen... so many names for a few pixels difference in display width

When I first read this thread title, I thought it'd be a return of the amusing time-waster, 'which is better?' Anyone remember that? The person starting the thread says, "so, which is better, X or Y?" and whoever answered had to propose a new 'which is better' question. That filled in a few minutes a day, which is nothing to be sneezed at.


Justice 4 Pat Richard

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

IP logged posted posted 04-28-2008 21:30 Edit Quote

Ok, so it's more of a preference thing?
If that's the case, I'll just stick with underscores like I have been.

White Hawk
Maniac (V) Inmate

From: zero divided.
Insane since: May 2004

IP logged posted posted 04-29-2008 01:04 Edit Quote

I suppose for URLs, if you see gaps (underlined), you can just presume they're underscores. I prefer underscores between words in a URL or a file name, and use hyphens grammatically.

liorean
Paranoid (IV) Inmate

From: Umeå, Sweden
Insane since: Sep 2004

IP logged posted posted 04-29-2008 02:29 Edit Quote

Indeed, since spaces are encoded as "%20" in URIs, you can pretty much assume all gaps are underscores in underlined URIs.

--
var Liorean = {
abode: "http://liorean.web-graphics.com/",
profile: "http://codingforums.com/member.php?u=5798"};

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 04-29-2008 12:07 Edit Quote

This is assuming it's a URL that's being displayed, and not some text to represent it as is so often used.


Justice 4 Pat Richard

(Edited by Skaarjj on 04-29-2008 12:07)

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

IP logged posted posted 04-30-2008 02:17 Edit Quote
quote:

Skaarjj said:

emdash, endash, hyphen... so many names for a few pixels difference in display width



Must... resist.. typography rant!


___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | the Fellowship of Sup

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 04-30-2008 15:39 Edit Quote

Hee! Damn, I was hoping for one.


Justice 4 Pat Richard

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

IP logged posted posted 04-30-2008 16:20 Edit Quote

My order of priority:
avoid
space (when im in windows otherwise skip)
full stop
underscore
hyphen



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu