Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 12-31-2009, 10:22 AM naming_convention?
Novice Talker

Posts: 9
Trades: 0
please forgive me... i'm fairly new at this but i have heard recently that file names should not begin with a # when naming things for the web.

Is this true and why?

Most of my images for the few sites i have built are named by their SKU item reference i.e. "01-101.jpg" / should these all be changed? kinda a pain in the *** for me / hoping to avoid it.

Also... heard that "camel backing" is also a bad practice as some Unix servers have trouble with capital letters... Is this true? ie: "thisExample.html" / i thought i was doing right by this?

My sites work with these naming conventions so i dont understand why this isnt good practice?

Any advice on the subject is greatly appreciated.

Thanks!

Last edited by yolksac; 12-31-2009 at 10:23 AM..
yolksac is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-31-2009, 10:43 AM Re: naming_convention?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
that file names should not begin with a # when naming things for the web.
It's rubbish

The disallowed characters in file names are " * : < > ? | \

Special characters in URIs are = | ; | / | # | ? | : | space



Quote:
Also... heard that "camel backing" is also a bad practice as some Unix servers have trouble with capital letters... Is this true? ie: "thisExample.html" / i thought i was doing right by this?
BamelCaps is the term.
And that's drivel as well.
Use camelcaps by all means.
The REAL fact is that *nix servers are case sensitive, so ThisFile.Ext is NOT the same as thisfile.ext on *nix servers BUT as Windows is NOT case sensitive, ThisFile.ext, THISFILE.ext or thisFile.EXT would be all the same.

BEING CONSISTENTis the key.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-31-2009, 10:51 AM Re: naming_convention?
Brandon's Avatar
loving life

Posts: 546
Name: Brandon
Location: Kansas
Trades: 1
I try to name all files in lower case, and remove any spaces.
__________________
Hello, I am
Please login or register to view this content. Registration is FREE
& I've been offering
Please login or register to view this content. Registration is FREE
since 2006
We're building the largest
Please login or register to view this content. Registration is FREE
on the net.
Are you
Please login or register to view this content. Registration is FREE
? Contact me if so
Brandon is offline
Reply With Quote
View Public Profile Visit Brandon's homepage!
 
Old 12-31-2009, 11:05 AM Re: naming_convention?
Novice Talker

Posts: 9
Trades: 0
thanks for the responses...

I'm not sure why i was told that #'s should NOT be used in the first character... Maybe it is related to SEO or something? Appreciate the correction chrishirst.

I also heard lower case is a good idea as well... as long as dashes or underscores are used for separators - ie: "this-example.html". According to this article (http://www.mattcutts.com/blog/dashes-vs-underscores/) dashes seem to be better suited for SEO for Google. Not sure if this is drivel as well?

Last edited by yolksac; 12-31-2009 at 11:07 AM..
yolksac is offline
Reply With Quote
View Public Profile
 
Old 12-31-2009, 11:47 AM Re: naming_convention?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You know, I just had to test this for the # symbol.

Actually putting a # anywhere in the file name, not just as the first character, causes browsers to treat the rest of the filename as a document fragment identifier.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-31-2009, 11:56 AM Re: naming_convention?
Novice Talker

Posts: 9
Trades: 0
sorry can you translate that for me?

does that mean it is not a good idea?

what happens?
yolksac is offline
Reply With Quote
View Public Profile
 
Old 12-31-2009, 12:38 PM Re: naming_convention?
Novice Talker

Posts: 9
Trades: 0
i just received a response from an adobe forum that may be useful in explaining the # issue...

"Even though many naming conventions are frowned upon that include starting with #@!, etc. the only ones not to use in images are " (quotes), # or - (dash).

This is mainly due to the interpretation of such items by the browser engine or server you are using. Also avoid spaces and . (dots) in the name where possible as many servers/browsers will interpret these wrong, (except using the . as a delimiters between file name and file type).

The basic principle to work on is, if you use 101-10.jpg and it works, do not worry, but be aware that if you use the same naming on another server it may not.

-PZ"

After hours of searching on google i was surprised this information wasn't retally more available.

I hope others find this useful.
yolksac is offline
Reply With Quote
View Public Profile
 
Old 12-31-2009, 01:20 PM Re: naming_convention?
Junior Talker

Posts: 1
Name: Amily
Trades: 0
Quote:
Originally Posted by Brandon View Post
I try to name all files in lower case, and remove any spaces.
me too, I do the same, and I don't have such problems. In fact I didn't know that using # causes errors, but still I want to say that you can do without it. I mean why do you have to use it in the first place?
__________________
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
AmieStuart is offline
Reply With Quote
View Public Profile
 
Old 12-31-2009, 01:44 PM Re: naming_convention?
Novice Talker

Posts: 9
Trades: 0
Quote:
Originally Posted by AmieStuart View Post
me too, I do the same, and I don't have such problems. In fact I didn't know that using # causes errors, but still I want to say that you can do without it. I mean why do you have to use it in the first place?
Hey Amie,

dont really have to but when i first created the site i based most of the image names on the product SKU item reference. I never actually had a problem with this myself but recently heard this was bad practice and was just needing confirmation.

The images actually display fine with the current naming but apparently i will need to watch for any issues if the site is moved to another server.

with that said... i will most likely not bother changing these image names until i absolutely have to.

Last edited by yolksac; 12-31-2009 at 01:53 PM..
yolksac is offline
Reply With Quote
View Public Profile
 
Old 12-31-2009, 01:59 PM Re: naming_convention?
Novice Talker

Posts: 9
Trades: 0
curious... whats is the consensus on the dash vs. underscore debate in regards to separator. ie. "this-example.html" vs. "this_example.html"

Does it really make a difference in SEO?

Last edited by yolksac; 12-31-2009 at 02:00 PM..
yolksac is offline
Reply With Quote
View Public Profile
 
Old 12-31-2009, 06:54 PM Re: naming_convention?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Search engines treat the "dash" (-) as a space in most circumstances. Supposedly they treat the underscore the same way, though personally I have yet to see evidence to support that.

Underscores when used in URLs can be mistaken as a space when linked

That's it! the pros & cons of the long running pointless "debate" on "underscore" vs "dash"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-01-2010, 08:18 AM Re: naming_convention?
Novice Talker

Posts: 9
Trades: 0
Thanks all for the response and info!

Happy new year by the way!
2010 ( holy crap : )
yolksac is offline
Reply With Quote
View Public Profile
 
Old 01-01-2010, 11:32 AM Re: naming_convention?
MrBrettMunro's Avatar
Novice Talker

Posts: 6
Trades: 0
Quote:
Originally Posted by yolksac View Post
curious... whats is the consensus on the dash vs. underscore debate in regards to separator. ie. "this-example.html" vs. "this_example.html"

Does it really make a difference in SEO?
No SEO difference but users will be able to see hyphenated words in the URL if you use underscores for spaces.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
MrBrettMunro is offline
Reply With Quote
View Public Profile Visit MrBrettMunro's homepage!
 
Old 01-05-2010, 12:02 AM Re: naming_convention?
Experienced Talker

Posts: 45
Trades: 0
When creating and uploading files intended for the accessof a website, please ensure that you follow the filename conventions below. The website is automated using scripts which rely on standardized filenaming conventions to create the web pages. Additionally, following the conventions makes it easier for people downloading a file to identify it.

Filenames should contain exactly one dot (period), used to separate the filename from the 3-character extension indicating the content-type of the file (e.g., pdf for Adobe PDF documents).

It is critical that filenames do not include spaces, hash signs, or other unusual characters. Please use only alphanumeric characters, hyphens and exactly one period.

It should also contain 'Dash' Or 'Underscore'.

Using Your Popular Keywords is again advantageous.

For further assistance kindly visit:

http://www.ieee802.org/1/filenaming.html

http://www.websitetoad.com/file-naming-conventions.htm

http://www.bnl.gov/webstandards/fileNaming.asp
__________________

Please login or register to view this content. Registration is FREE
printrobin is offline
Reply With Quote
View Public Profile Visit printrobin's homepage!
 
Reply     « Reply to naming_convention?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52384 seconds with 12 queries