View Full Version : coding style
dirtdevil
9 Apr 2008, 3:11 PM
What is the coding style you guys use for developing in extjs? You know, the whole getSomething setSomething getThisVar etc etc. Where you lower case the first letter of the first word yet upper all the other first letter of the first word in the var. If this is a pretty well known standard for development, can someone give me a name or a link to a site so I can read up on the rest of the standard?
-Thanks.
That particular style is called camel casing. It's popular with languages that have syntax similar to C (and possibly others).
jsakalos
10 Apr 2008, 3:38 AM
Capital first letter is used for constructors, lowercase for objects properties, functions. E.g.:
MyPanel = function(){....};
// ....
var myPanel = new MyPanel({....});
myPanel.getSomeData();
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.