Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExtJS 4 Naming Conventions

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?

like image 560
Tom Early Avatar asked Oct 07 '11 12:10

Tom Early


2 Answers

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

like image 68
dbrin Avatar answered Sep 23 '22 18:09

dbrin


Official, I'm not sure, but in my opinion..

  • Root namespaces and constructors are UpperCamelCase
  • Sub-namespaces, styles, events and xtypes are lowercase
  • Methods, attributes and variables are lowerCamelCase
like image 37
Hugh Avatar answered Sep 23 '22 18:09

Hugh