Quote:Who suggested not using naming conventions? Or am I misunderstanding?
(summarizing) I was referencing comments made about how naming didn't matter as long as the name had functional relevance -- the IDE could be used to obtain other relevant information such as structure and type. I felt this adovocated using the IDE as a "crutch" in place of functionality a traditional naming convention would provide.
Furthermore, naming based on functional relevance alone is not a naming convention at all because it does not address the issue of consistency, or structure. A comment was also made that naming should be "function not form". Form is the heart of a naming convention, it is the very essence of code consistency.
For example, consider the use of length as a form to naming in addition to functionality descriptions. Using length generilizations alone, you can add scope information to your variables (such as the longer the length the broader the scope, as used in Linux kernel development). Consider capitalization, also a representation of form, can be used to seperate Class names from variable names. Depending on language, framework, etc. prefixes containing meta information, or type should be leveraged when problems are forseeable, it is not redundant to do so, or as a differentiator.
I hope that clarifies why I felt naming conventions were being disregarded.
EDIT:
Quote:Code changes. Hence variable names should reflect the function, not the form. Once a variable is referenced in 500 files, across 20 projects, renaming it simply isn't possible anymore.
My point exactly. Having a variable referenced in 500 files across 20 projects is horrendous. Following a naming convention (such as the one I mentioned with scope) would have prevented this problem becuase longer variable names are inconvinient and as such adherence discourages broad scope. Applying form in this case would have allowed a developer to rethink function...
[Edited by - CowboyNeal on April 28, 2010 12:34:17 PM]