: Folder naming convention in a web development I'm just wondering whether it would be appropriate/acceptable to use the following folder naming convention within a website development? For folders
I'm just wondering whether it would be appropriate/acceptable to use the following folder naming convention within a website development?
For folders which the end users will see as part of the URL:
/Photos
/Downloads
/Downloads/Documents
(basically, the standard way of naming folders)
... but for folders which aren't seen by the user, but which contain resources used by the website:
/_sitegraphics
/_js
/_xml
/Photos/_photosxml
Are there any reasons that prefixing the 'private' folders with an underscore is a bad idea? I'm only considering it because I think it keeps things tidy and easier to identify.
More posts by @Martha676
1 Comments
Sorted by latest first Latest Oldest Best
I often use a very similar naming convention / separation of system and userland folders. Either using the _ (underscore) or @ (at) to prefix the system folders. Like you say, it makes the folders easier to identify (when arranged alphabetical they are at the top) and I've not come across anything negative to doing it this way.
However, I do try to keep the _/@ system folders to a small core of folders at the root. And subfolders (inside a system folder) use regular folder names.
Example...
/public_html
----/@W3d
--------/Core
--------/Ext
--------/Project
This is generally for server-side scripts. I don't always do this with JavaScript and CSS - may be for the core files in an application. For server-side script you could always keep them in folders above the document root, then they are truly separated.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.