Programming Theory & Fundamentals: naming variables

Published on Wednesday, November 28, 2012


This tutorial describes some programming tips and best practices for naming your functions and variables in your code. When you write code, you want to avoid using confusing, vague, non-descriptive names for variables and other modules in your source code. Be sure to choose short, easy to understand names, and of course, be sure to spell them correctly. Finally, use measurement unites when appropriate. For example, a variable named angleDeg does a better job than one named just angle, in describing a variable that represents an angle in degrees (as opposed to an angle in radians). For more programming theory video tutorials, check out the complete playlist at Other links of interest: -- Our YouTube channel -- Visit our website for more text and video tutorials, updates, and upcoming tutorial articles and events -- Like us on Facebook -- Follow us on Twitter

Copyright © 2014-2017 EasyLearnTutorial. All rights reserved.