5 Oct 2010 10:38 AM #1
Naming Conventions and Case?
As far as I can determine..
- Root namespaces and constructors are UpperCamelCase
- Sub namespaces are lowercase
- Methods and variables are lowerCamelCase
I only ask so that I can make use of this in my own applications.
5 Oct 2010 10:47 AM #2
That prety much summs it up.
Also, styles, events and xtypes are always all lowercase.-Shea
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
5 Oct 2010 10:51 AM #3
That's the convention I am using, except that every part of a namespace (e.g. part1.part2.part3) is lowercase. In some cases, a part of the namespace could be in UpperCamelCase, but that would be because that part of the namespace is a singleton. I think that's why they choosed to make Ext written 'Ext' and not 'ext'. Because it has some static methods. (e.g. Ext.get()) ... but I might be wrong
5 Oct 2010 10:59 AM #4
At first I thought it was totally random, it was only after writing the above post I started seeing a pattern.
As a beginner I've found the naming convention slightly confusing and frustrating; Despite knowing the name of a component, I'd always have to double check the API docs for the case of the namespace, class and method.
By Bucs in forum Ext 3.x: Help & DiscussionReplies: 7Last Post: 30 Jun 2010, 3:07 AM
By mayanknext in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 24 Mar 2009, 1:44 AM
By mjlecomte in forum Community DiscussionReplies: 3Last Post: 3 Sep 2008, 1:06 PM
By InKiev in forum Ext 2.x: BugsReplies: 2Last Post: 6 Feb 2008, 11:13 AM