Should files be named something-with-hyphens.js, camelCased.js, or something else?
I didn’t find the answer to this question here.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One possible naming convention is to use something similar to the naming scheme jQuery uses. It’s not universally adopted but it is pretty common.
where the
product-name+pluginpair can also represent a namespace and a module. Theversionandfiletypeare usually optional.filetypecan be something relative to how the content of the file is. Often seen are:minfor minified filescustomfor custom built or modified filesExamples:
jquery-1.4.2.min.jsjquery.plugin-0.1.jsmyapp.invoice.js