Reputation: 165
I was discussing with my colleagues the correct naming conventions for classes, variables and objects etc within ExtJS 4, but we all had differing views.
Is there an "official" stance on this?
Upvotes: 15
Views: 2321
Reputation: 15673
There absolutely is an official stance. It is outline in section 2 of the Class System guide. Here is the link: https://docs.sencha.com/extjs/7.2.0/guides/core_concepts/classes.html#core_concepts--classes-_naming_conventions
Upvotes: 8
Reputation: 1459
Official, I'm not sure, but in my opinion..
UpperCamelCase
lowercase
lowerCamelCase
Upvotes: 7
Reputation: 20047
I recently attended an Ext.js 4 training course (delivered by Sencha) and their advice was the following:
So Hugh is pretty much on the money
Upvotes: 3
Reputation: 2966
It's preference, really. What Hugh said are good guidelines, but I actually prefer namespaces to be in ALL CAPS, but our apps have fairly short namespaces so it doesn't look ridiculous.
Upvotes: 3