Regarding Naming Tradition

Web Design Talk September 30th, 2009
Regarding Naming Tradition
Here is a very practical question: in order not to extend the depth of the directory, and to reduce the searching time, we need to get rid of some directory level.

As we know, the purpose of adding more sub-folders to a directory is for the convenience of looking up a specific document later.
How can we find a file in a short time? Control system can correctly search the file through path, because in every directory, all symbols are the same, we can normally find:
- name of the file
- type of the file
- location of the file
- the last modified time
Path, (even you know the path, you still need to click into each subfolders for the file you need)
But for computer, it does not need to know how readable the file name to be, as long as it matches the criteria of the naming tradition, then only a unique name under the same directory is enough.
As a result, we can use some “prefix” or “suffix” to make it easier for us human to read and faster for computer to interpret.
Common prefix or suffix are: file name, file type, domain name, date and version.
For the word “demo”, you can extend its file name by adding the following:
File name:css_demo |demo_css
File type:png_demo | demo_png
Domain:blog_demo | demo_blog
Date:20090904_demo | demo_20090904
Version:v1_demo | demo_v
Edited By Dan Li
Recent Comments