CSC/ECE 517 Summer 2008/wiki2 2 rapodraz: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=Variable Naming in Programming=
=Variable Naming in Programming=
Almost all programming languages allow the programmer a great deal of freedom when naming variables in a program's source code. It may seem like this is an obvious advantage, as it gives the programmer a great deal of flexibility. However, this level of freedom may incorrectly reflect the notion that variable naming is unimportant. Since variables can be named in many different ways, they often are, and the result is a high degree of inconsistency that can be problematic for code readability and maintenance.
Almost all programming languages allow the programmer a great deal of freedom when naming variables in a program's source code. It may seem like this is an obvious advantage, as it gives the programmer a great deal of flexibility. However, this level of freedom may incorrectly reflect the notion that variable naming is unimportant. Since variable identifiers can be named in many different ways, they often are, and the result is a high degree of inconsistency that can be problematic for code readability and maintenance.


=Naming Conventions=
=Naming Conventions=
 
In most context, the term [[http://en.wikipedia.org/wiki/Identifier_naming_convention|"naming conventions"]] refers to a set of rules used to name variables that deal with things like capitalization, use of underscore characters, use of variable prefixes, etc.
=Naming Choices=
=Naming Choices=


Line 9: Line 9:


=External Links=
=External Links=
[[CSC/ECE 517 Summer 2008/wiki2 Assignment|Back to the assignment page]]
[[CSC/ECE 517 Summer 2008/wiki2 Assignment|Back to the assignment page]]

Revision as of 17:26, 23 June 2008

Variable Naming in Programming

Almost all programming languages allow the programmer a great deal of freedom when naming variables in a program's source code. It may seem like this is an obvious advantage, as it gives the programmer a great deal of flexibility. However, this level of freedom may incorrectly reflect the notion that variable naming is unimportant. Since variable identifiers can be named in many different ways, they often are, and the result is a high degree of inconsistency that can be problematic for code readability and maintenance.

Naming Conventions

In most context, the term ["naming conventions"] refers to a set of rules used to name variables that deal with things like capitalization, use of underscore characters, use of variable prefixes, etc.

Naming Choices

Using Design Pattern Names

External Links

Back to the assignment page