r/dailyprogrammer • u/Coder_d00d 1 3 • Jul 28 '14
[Weekly #4] Variable Names
Variable Names:
We use variables a lot in our programs. Over the many years I have seen and been told a wide range of "accepted" use of names for variables. I always found the techniques/methods/reasons interesting and different.
What are some of your standards for naming variables?
Details like are they language specific (do you change between languages) are good to share. Or what causes the names to be as they are.
Last Week's Topic:
[Weekly #3] (http://www.reddit.com/r/dailyprogrammer/comments/2bbvqp/weekly_3_favorite_data_structure/)
View all comments
Show parent comment
-1
u/StopThinkAct Aug 05 '14 edited Aug 06 '14
No, you're not reading. Comments are a code smell. If you must comment your code, chances are either
Additionally, a complex algorithm or structure can be broken down into units of work.
Honestly, up until 6 months ago I'd have agreed with you. I moved to a shop that does TDD, pair programming and uses SOLID design principles. It's a totally different world, and I haven't written a comment since my first week.
Edit: Wow never-mind. You're 19 and haven't even got out of college yet? Waste of my time, thanks.