PDA

View Full Version : MVC Naming Convention



supermonchi
21 Mar 2011, 5:47 PM
Is there a specific naming convention required for MVC?
If yes, where can I learn more about it?

Also in general, is there a specific naming convention for sencha touch for filenaming, function and variable names, etc? Or should I just follow Javascript naming convention?

Thanks!

d5chris
21 Mar 2011, 7:10 PM
I simply follow the naming convention from here:
http://www.sencha.com/learn/Tutorial:A_Sencha_Touch_MVC_application_with_PhoneGap
And if in doubt, just do things as per normal javascript, eg camelCase for instance variables, and PascalCase for namespaces and class declarations.

supermonchi
21 Mar 2011, 7:40 PM
Ok thanks.

Just that I'm trying to debug an error, just wanted to eliminate the possibility of it coming from false naming. Also good to pick up good habits from early on since I'm only just a beginner at this stage.