Name of the files

  • Thread starter Luigi Donatello Asero
  • Start date
L

Luigi Donatello Asero

I wonder whether it is better to write the name of files which are made of
more than one word separating words by "-" or "_" or not separating them at
all.
 
S

SpaceGirl

Luigi Donatello Asero said:
I wonder whether it is better to write the name of files which are made of
more than one word separating words by "-" or "_" or not separating them at
all.


... or periods. I tend to have filenames like "logo.top.news.jpg"
 
R

rf

Luigi Donatello Asero said:
I wonder whether it is better to write the name of files which are made of
more than one word separating words by "-" or "_" or not separating them at
all.

..
 
L

Luigi Donatello Asero

SpaceGirl said:
That should be better. (ferienwohnungen means "holiday lodgings")
http://www.scaiecat-spa-gigi.com/de/ferienwohnungen.auf.sizilien.html

Well, I found also this
http://www.mvhs.net/iTeam/nomenclature.html
But the 2 sites seem to give different recommendations about the use of
capital letters!
So, what is better
http://www.scaiecat-spa-gigi.com/de/ferienwohnungen.auf.sizilien.html
or
http://www.scaiecat-spa-gigi.com/de/FerienwohnungenAufSizilien.html
?
 
S

SpaceGirl

Luigi Donatello Asero said:


You should never use capital letters or spaces in filenames. Other than
that, honestly it's up to you! :)
 
W

Wÿrm

I wonder whether it is better to write the name of files which are made of
more than one word separating words by "-" or "_" or not separating them at
all.

use "-" if you are using your search engine keywords in filenames. Google
interprets "-" as space...
 
P

Psyonicdreams

A little long, but good
Bad!

You should never use capital letters or spaces in filenames. Other than
that, honestly it's up to you! :)

I still remember my first attept at a site I spent ages getting it all
looking right on my PC, but I had given the files names like
Projects.htm and all the files were linked with thinks like
projects.htm. Everything was fine on my PC, but as soon as
it was one the server it thinks that Projects and projects were
different files and of course everything broke, I was not a happy
bunny! 8o( These days 99% of the time I remember it must be
lower case. As for the spaces I used to use them like:

http://www.aspexdesign.co.uk/psy_page_robots.htm
http://www.aspexdesign.co.uk/psy_page_frames.htm
(They have _'s in them)

But these days most of them I just keep as short as possible i.e:

http://www.aspexdesign.co.uk/robots.htm
http://www.aspexdesign.co.uk/frames.htm
etc.
 
S

SpaceGirl

Psyonicdreams said:
A little long, but good


I still remember my first attept at a site I spent ages getting it all
looking right on my PC, but I had given the files names like
Projects.htm and all the files were linked with thinks like
projects.htm. Everything was fine on my PC, but as soon as
it was one the server it thinks that Projects and projects were
different files and of course everything broke, I was not a happy
bunny! 8o( These days 99% of the time I remember it must be
lower case. As for the spaces I used to use them like:

http://www.aspexdesign.co.uk/psy_page_robots.htm
http://www.aspexdesign.co.uk/psy_page_frames.htm
(They have _'s in them)

But these days most of them I just keep as short as possible i.e:

http://www.aspexdesign.co.uk/robots.htm
http://www.aspexdesign.co.uk/frames.htm
etc.

I think some older browsers have a limit to the number of characters that
can be placed in the address box - so if you have
areallyreallyreallyreallyreallyreallexcessivelytupidlylongfilenamelikethis.a
sp?param=lotsof&stuff=passedvia&q=uiriestring might break your browser!
 
W

Whitecrest

I wonder whether it is better to write the name of files which are made of
more than one word separating words by "-" or "_" or not separating them at
all.

There are several naming conventions. It is all personal preference.
The important thing is to name things with logical names.
 
M

Mitja

Wÿrm said:
use "-" if you are using your search engine keywords in filenames.
Google interprets "-" as space...

The same is true for other punctuation: ".", ",", "/", etc. Underscore ("_")
is excluded from this list.

Do it as you like, users hardly care. Use what makes sense to YOU - you are
the maintainer, you've gotta know the names.
 
T

Toby A Inkster

Luigi said:
I wonder whether it is better to write the name of files which are made of
more than one word separating words by "-" or "_" or not separating them at
all.

Are you going to have to read them out over the phone? If so, use
whichever punctuation is easiest to say over the phone in your native
language.

Are you going to print the URL on paper a lot? If so, avoid underscores
as they can get confused with underlining.
 
D

Deryck

Toby A Inkster said:
Ignore point #4. It's braindead.
Thanks. I couldn't see the logic of that (maybe 5 years ago when the page
was last touched?). Presumably it is enough that one should be consistent
(eg all .html or all .htm) unless one enjoys making difficult for oneself?

Deryck
 
A

Andy Dingley

Toby A Inkster said:
Ignore point #4. It's braindead.

Why ? Have you read the latest words from M$oft (posted hereabouts
just today) about dire consequences if you feed one of their b0rken
products with a content-type that appears to disagree with the
extension.

Maybe this is all broken and rubbish, but we're just the poor schmucks
who have to work around it, not just sit there telling Bill he's got
it all wrong. If keeping .htm gives me an easier life, then I'll do
it.
 
S

SpaceGirl

Andy Dingley said:
Toby A Inkster <[email protected]> wrote in message

Why ? Have you read the latest words from M$oft (posted hereabouts
just today) about dire consequences if you feed one of their b0rken
products with a content-type that appears to disagree with the
extension.

Maybe this is all broken and rubbish, but we're just the poor schmucks
who have to work around it, not just sit there telling Bill he's got
it all wrong. If keeping .htm gives me an easier life, then I'll do
it.

What the article fails to mention are scripts... such as .asp, .aspx, .php
etc....
 
S

SpaceGirl

Mitja said:
And png. And others. LOTS of them.
What prevents me from having .foobar files - if the content type is correct,
everything should be ok. I still wouldn't try it with the "doc" extension
and text/html as content-type, or something like that - that's asking for
trouble.

Because IE is dumb, basically. It wont work, even if the content type is
right.
 
M

Mitja

SpaceGirl said:
What the article fails to mention are scripts... such as .asp, .aspx,
.php etc....

And png. And others. LOTS of them.
What prevents me from having .foobar files - if the content type is correct,
everything should be ok. I still wouldn't try it with the "doc" extension
and text/html as content-type, or something like that - that's asking for
trouble.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top