I/we kept switching but some years ago I decided that I use lowerCamelCase when possible without any underscores etc. (also in var names, image files, css etc.)
I also used to add the "type" of the file to the filename like class.whatever.js or handler.products.php, because in a folder with 10-20 js files it was easy to see what kind of file it was. Though some months ago I dropped the "class."-prefix convention for JS files and now name them like MooTools (More) classes are named internally (Fx.js or My.DonutClass.js). CamelCase and no "class."- prefix. All other files still in lowercase or lowerCamelCase. Not 100% consistent between all files/assets in a project, but that's only because I use Moo for JS and like to follow the "sort-of agreed on" internally way of doing things. On Sep 7, 5:41 pm, Ryan Florence <[email protected]> wrote: > I think most probably do lowercase. I tend to follow the same conventions as > Rails and some other MVCs. > > ClassName => file_name > > So the ApplicationController class has a file name of > application_controller.ext > > On Sep 7, 2010, at 9:19 AM, Trevor Orr wrote: > > > > > I have always developed websites in a windows environment and recently I > > have started developing in a LAMP environment and since file names are case > > sensitive I was just wondering if there is a more or less standardized file > > naming convention when it comes web development? Like all lower case or > > camel case separated by underscores or ??? > > > Just not sure what I prefer since in windows you can be lazy and not worry > > about case.
