473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

page naming conventions OT

I'm server generating static pages.

I thought I would do this:

Take the section name and append the page title with a dash (underscores to
replace spaces).

The trouble I have is that the sections and page titles are all uppercase,
so I get page name like:

SERVICES-INDUSTRIAL.htm

subsections would look like:

SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm

Now, I realize that is perfectly valid, but it just doesn't *look* right to
me. I'm tempted to lowercase it.

Any comments, stylewise or otherwise? Perhaps a better section divider
than a dash? This will be on a case sensitive (linux/apache) server.

Jeff


Jul 20 '05 #1
15 1789
On Fri, 12 Dec 2003 19:13:32 +0000, Jeff Thies wrote:
Take the section name and append the page title with a dash (underscores to
replace spaces).

The trouble I have is that the sections and page titles are all uppercase,
so I get page name like:

SERVICES-INDUSTRIAL.htm

subsections would look like:

SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm

Any comments, stylewise or otherwise? Perhaps a better section divider
than a dash? This will be on a case sensitive (linux/apache) server.


Have you considered using the heirarchical nature of URLs to your
advantage, rather than reinventing the wheel?

http://site/Services/
http://site/Services/Industrial/
http://site/Services/Industrial/Machine_Tools

might be a workable scheme.
Jul 20 '05 #2
> > Take the section name and append the page title with a dash (underscores
to
replace spaces).

The trouble I have is that the sections and page titles are all uppercase, so I get page name like:

SERVICES-INDUSTRIAL.htm

subsections would look like:

SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm

Any comments, stylewise or otherwise? Perhaps a better section divider
than a dash? This will be on a case sensitive (linux/apache) server.
Have you considered using the heirarchical nature of URLs to your
advantage, rather than reinventing the wheel?

http://site/Services/
http://site/Services/Industrial/
http://site/Services/Industrial/Machine_Tools


It's a thought, and it seems like the right way to go.

Trouble is that there are only 19 html pages which yields a very high
directories to files ratio. It's a lot of trouble tracking all those
directories and making links point the right place.

Cheers,
Jeff
might be a workable scheme.

Jul 20 '05 #3
Owen Jacobson <an******@lionsanctuary.net> wrote:
http://site/Services/Industrial/Machine_Tools


Upper case characters are best avoided in URLs, since they are mainly a
burden - anyone who tries to remember a mnemonic URL will find
difficulties with case distinction.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #4
On Fri, 12 Dec 2003 21:48:37 +0000, Jeff Thies wrote:
It's a thought, and it seems like the right way to go.

Trouble is that there are only 19 html pages which yields a very high
directories to files ratio. It's a lot of trouble tracking all those
directories and making links point the right place.


You're looking at it wrong-way-up. It's only 19 pages now. It's going to
get bigger (axiom: data expands to fill the available storage).
Organizing properly now will save you innumerable headaches in the future.

Jukka's right, by the way. Lowercase is your friend.
Jul 20 '05 #5
Jeff Thies wrote:
It's a thought, and it seems like the right way to go.

Trouble is that there are only 19 html pages which yields a very high
directories to files ratio. It's a lot of trouble tracking all those
directories and making links point the right place.


Linking is not that difficult:

/dir/sub-dir/page.htm

If you are going to make relative links:

.../page.htm

It will be very hard to maintain indeed.

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #6
In article <Xn*****************************@193.229.0.31>,
Jukka K. Korpela <jk******@cs.tut.fi> wrote:
Owen Jacobson <an******@lionsanctuary.net> wrote:
http://site/Services/Industrial/Machine_Tools


Upper case characters are best avoided in URLs, since they are mainly a
burden - anyone who tries to remember a mnemonic URL will find
difficulties with case distinction.


Except perhaps for names that are normally capitalized, e.g. cities or
countries.

--
Jon Bell <jt*******@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA
Jul 20 '05 #7
I prefer .html myself, doesn't make me look like a MSWin n00b O:-)

On Fri, 12 Dec 2003 19:13:32 +0000, Jeff Thies wrote:
SERVICES-INDUSTRIAL.htm


--

..

Jul 20 '05 #8
Vigil wrote:
I prefer .html myself, doesn't make me look like a MSWin n00b O:-)


What is wrong with '.htm'. I always chose '.htm' since it is shorter,
and almost every filename has that extension.
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #9
On Tue, 16 Dec 2003, Anne van Kesteren wrote:
Vigil wrote:
I prefer .html myself, doesn't make me look like a MSWin n00b O:-)
What is wrong with '.htm'.


I think you just quoted one important reason!
I always chose '.htm' since it is shorter,
It's a point of view...
and almost every filename has that extension.


Not from where I'm sitting, they don't.

Anyway, when I was using a web server on Windows 3.1 in 1994 or so, I
still wrote my URLs as .html - the server didn't mind (it calmly
chopped off the last letter and ignored the case), and the files were
ultimately destined for a real server (that would have been NCSA HTTPD
on Ultrix, at that time) instead of the toy one that I was using on
Windows for developing the pages.
Jul 20 '05 #10
That was slightly tongue in cheek. I just automatically think that a page
was created in some MSWin GUI because the author doesn't know HTML
whenever I see something .htm. *shrug*

On Tue, 16 Dec 2003 21:14:06 +0100, Anne van Kesteren wrote:
What is wrong with '.htm'. I always chose '.htm' since it is shorter,
and almost every filename has that extension.


--

..

Jul 20 '05 #11
On Tue, 16 Dec 2003 21:14:06 +0100, Anne van Kesteren wrote:
What is wrong with '.htm'. I always chose '.htm' since it is shorter,
and almost every filename has that extension.


Windozer!

..html .gz .so .c .java .class

GM

Jul 20 '05 #12
On Fri, 19 Dec 2003 10:32:48 +1100, Geoff Muldoon wrote:
On Tue, 16 Dec 2003 21:14:06 +0100, Anne van Kesteren wrote:
What is wrong with '.htm'. I always chose '.htm' since it is shorter,
and almost every filename has that extension.


.html .gz .so .c .java .class


And the classic
..htaccess
Eight letter extension, no proper name at all. If you're using a
brane-dead filesystem, anyways.
Jul 20 '05 #13
MH
>.... If you're using a
brane-dead filesystem, anyways.


brane-dead ?

-------
MH
Jul 20 '05 #14
"MH" <no****@nowhere.no> wrote in news:brufiv$j7o$1
@news4.tilbu1.nb.home.nl:
.... If you're using a
brane-dead filesystem, anyways.


brane-dead ?


drain-bamaged ?

--
Edward Alfert - http://www.rootmode.com/
Discount Code (Recurring 25% Off): newsgroup
Multiple Domain Hosting * Reseller Hosting
Free IP Addresses * Private Label Nameservers
Jul 20 '05 #15
Tim
On Fri, 19 Dec 2003 00:18:07 GMT,
Owen Jacobson <an******@lionsanctuary.net> wrote:
And the classic
.htaccess
Eight letter extension, no proper name at all. If you're using a
brane-dead filesystem, anyways.


'tis a "filename" not a file description. In various sensible systems,
the filename is a purely arbitrary thing, and only a brain-dead OS (such
as various Microsoft ones) use the filename to work out what the file
is.

On Unix-like systems, a leading dot means a hidden file, it's not a
filename suffix. For .htaccess the file is called htaccess, and has no
suffix, at all.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Cristof Falk | last post by:
I wanted to get a feel. The documentation gives naming conventions for public/protected members. Is this truly widely adopted? And what about using the same conventions for private members and...
7
by: cmiddlebrook | last post by:
Hi there, I keep finding myself getting inconsistent with naming conventions for things like member variables, class names etc and I just want to find something that suits me and stick to it. I...
1
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
4
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
3
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
5
by: rastaman | last post by:
Hi all, I know of the existence of Object Naming Conventions for Visual Basic 6. Now I'm reading some books about VB .NET, but the names used for the objects are button1, picturebox1, etc. I...
4
by: Patrick | last post by:
what are the general naming conventions for vb.net controls. esp txtUserName, lblPassword, btnSubmit What are the prefixes for the controls???? I've tried to search hi and low on the net, but...
9
by: kevininstructor | last post by:
Greetings, I am in the process of creating naming conventions for VB.NET controls i.e. CheckBox -> chkShowThisOnStartup ListBoxt -> lstSomeList What I am looking for other developers...
35
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
1
by: Philipp Post | last post by:
Marcello, Not a big surprise as naming conventions have a lot to do with personal prefernces. There are a lot of threads in comp.databases and the other database groups. Just do a search for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.