And No, i am not referring to single variables in loops or exceptions. Lets say pointer/struct names in large c ,c++ programs . Are there any languages where this type of naming is acceptable or is the norm. Or any constructs in c/c++ ( not iterators,loops) where it is implicit.
what is the general practice in handling such naming conventions ? would you change it? if so how would you change it?
If you are a team-project lead and some one raises an issue with regards to the naming convention how would you view it?
i
where astoryIndex
will do. There exist re-factoring tools. C# has StyleCop, for example.i
or aj
; not so much better that I would change it in someone else's code, but better so that I would try to avoidi
andj
myself. Even when using 2D array - the way mathematicians like to index a matrix and the CS people would can differ - arguablyrowIndex, colIndex
are preferable to havingi
andj
. The foreach can't iterate over 2 collections of same size at once and LINQ is a bit slower. I find that it is better to not usei
andj
- it can make code 0.2% better.