If you are going to use "class" to identify class contruct and rather than using "inc" which is too general how about using "function" if it is for function and "html" if it is used for html and etc.
-
MODX Staff
- 10,725 Posts
For that matter then, we could do away with the dot notation in the file names and just organize the files into directories for includes, scripts, classes, etc. -- however, I often create a folder of resources that might have one of each of these (WebLogin snippet is an example) and I like to know which is which in that directory. I just think it’s more consistent to stick with one convention.
Hmm,
IMO .inc tells me that the file is to be included inside another file. I think we should keep it. The .class extension is also good to have
Quote from: OpenGeek at Nov 16, 2005, 10:06 PM
However, class and inc together is redundant; class files aren’t very useful if they aren’t included somewhere. ;)
Hmmm,
True! All class files are considered include files but not all included files contains class objects
-
MODX Staff
- 12,272 Posts
How classy of you to include the distinction! (Insert gong sound here...)
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me