Basic concepts Some programmers like all lowercase, some programmers like to use underscores, so if you want to write a variable of my name, they often have myname, my_name, MyName, or myname. Such a naming convention is not suitable for all programmers to read, and the use of the Camel name method to express, can increase the readability of the program. For example, the following is the same function named by camel-named and underscore: Printemployeepaychecks (); Print_employee_paychecks (); The first function name uses camel-named notation Each logical breakpoint in the function name is marked with an uppercase letter, and the second function name uses the underscore method----each logical breakpoint in the function name is marked with an underscore. Camel-like nomenclature is used quite a lot in environments such as many new libraries and Microsoft Windows. On the other hand, the underscore is popular after the advent of C, in many of the old Programs and UNIX environment, it is very common use. Application Overview Camel-style nomenclature is when a variable name or function name is a unique identifier consisting of one or more words, the
first word starts with a lowercase letter, the first letter of the second word is capitalized, and the first letter of each word is capitalized . For example: MyFirstName, mylastname, such a variable name looks like camel peaks as one after the other, so named. The term camel-named (camel-case) is a camel that comes from the widely used case-and-write format in Perl, and the cover picture of Programming Perl (O ' Reilly), a bestseller of Larry Wall. The naming rules of camel-like nomenclature can be regarded as a convention, and there is no absolute and mandatory, in order to increase recognition and readability. Small Hump method is usually identified by small hump method. The Hump method means that in addition to the first word, the first letter of the word is capitalized. For example, int mystudentcount; variable Mystudentcount The first word is all lowercase and the first letter of the following word is capitalized. The big hump method compares the small hump method, the big hump method has capitalized the first letter of the initial word. Commonly used for class names, function names, properties, namespaces. For example, public class Databaseuser;
Camel name Law