Coding best practices: Difference between revisions

Content deleted Content added
No edit summary
Avoid redirect.
Line 291:
It is usually considered good practice to use descriptive names.
 
Example: A variable for taking in weight as a parameter for a truck can be named TrkWeight or TruckWeightKilograms, with TruckWeightKilograms being the preferable one since it is instantly recognisable. See [[camelcasecamel case|CamelCase]] naming of variables.
 
=== Keep the code simple ===