As the name implies "identifier names" should clearly identify who (or what) you are talking about. Calling you spouse "Snooky" may be meaningful to only you. Others might need to see her full name (Jane Mary Smith) to appropriately identify who you are talking about. The same concept in programming is true. Variables, constants, functions, typedefs and other items should use meaningful identifier names. Additionally, those names should be typed consistently in terms of upper and lower case as they are used in the program. Don't define a variable as: Pig and then type it later on in your program as: pig.
You are here
Home » Programming Fundamentals -A Modular Structured Approach using C++ » Program Control Functions » Documentation and Making Source Code Readable » General Discussion
Meaningful Identifier Names Consistently Typed
- Front Matter
- Body Matter
- Back Matter