I would like to learn popular ways of naming files in JavaScript and PHP. I am working on a JS + PHP system and I do not know what to name my files.
I am currently doing for JS:
framework/
framework/widget/
framework/widget/TextField.js (Framework.widget.TextField())
Framework.js (Framework())
So, my folders have lowercase letters and CamelCase objects, but what if the folder / namespace needs more than one word? What about PHP?
jQuery seems to follow:
jquery.js
jquery.ui.js
jquery.plugin-name.js
so what is it
jquery(\.[a-z0-9-])*\.js
but ExtJS follows a completely different approach. Douglas Crockford gives us only detailed information about his preference for syntactic conventions.
source
share