Naming conventions

Here are some arbitrary rules that I aim to keep to. Most of the time, getting the convention exactly right matters less than simply having a convention.


This is highly influenced by my preference for the camelBack convention and the naming convention in CityDesk databases (and so owes a little to Charles Simonyi's Hungarian Notation). The different scheme that names a table TBL_ARTICLE is perfectly defensible. The key is a scheme that helps your eye pick up the elements of names and actually read the code, while keeping your finger away from the caps key most of the time. Pick one scheme and stick with it.

Database naming conventions

See http://weblogs.asp.net/jamauss/articles/DatabaseNamingConventions.aspx

Names in general will:

Tables and views/queries

Field names:

Site naming conventions

Directory names

For simplicity's sake, only a few files stay in the server document root:

The following standard redirects exist:

The following standard directories exist:

Page names

To keep the search engines happy, we use underscores here: my_page_name.html. (There's an argument that my-page-name.html would attract more attention from Google, but I have used this scheme too long to ditch it now.)

Previous      Next
All material copyright 1998-2006 Shorewalker DMS except where otherwise noted.
Home  |  Contact  |  Privacy  |  Terms

This item first filed on Thursday, September 09, 2004 and last modified on Thursday, September 09, 2004