Being a good programmer, one should always follow some standards of naming convention of that programming. So that your code must be readable to other programmers. Here are the some of the basic about the naming convention of Sencha ExtJs.
As ExtJs full form is extended JavaScript. So, it almost follows all those set of rules that we follow in case of JavaScript. For Example:
Class Name: 1st letter must be Upper Case and followed by Camel Case.
Example: EmployeeClass
Method Name: 1st letter must be Lower Case and followed by Camel Case.
Example: employeeTax()
Variable Name: 1st letter must be Lower Case and followed by Camel Case.
Example: employeeSalary.
Constant Name: All letter must be in UpperCase. Example: TAXCONStANT : 5
Property Name: 1st letter must be Lower Case and followed by Camel Case.
Example: emplyeeStatus=true.
Note: All the name must be meaning full.
Remember: If you don’t use meaning full name then it might be difficult for you to understand same code in future.
Liked By
Write Answer
Naming Convention for ExtJs Programmer.
Join MindStick Community
You have need login or register for voting of answers or question.
Abhishek Srivasatava
11-Nov-2016Being a good programmer, one should always follow some standards of naming convention of that programming. So that your code must be readable to other programmers. Here are the some of the basic about the naming convention of Sencha ExtJs.
As ExtJs full form is extended JavaScript. So, it almost follows all those set of rules that we follow in case of JavaScript.
For Example:
Class Name: 1st letter must be Upper Case and followed by Camel Case.
Example: EmployeeClass
Method Name: 1st letter must be Lower Case and followed by Camel Case.
Example: employeeTax()
Variable Name: 1st letter must be Lower Case and followed by Camel Case.
Example: employeeSalary.
Constant Name: All letter must be in UpperCase.
Example: TAXCONStANT : 5
Property Name: 1st letter must be Lower Case and followed by Camel Case.
Example: emplyeeStatus=true.
Note: All the name must be meaning full.
Remember: If you don’t use meaning full name then it might be difficult for you to understand same code in future.