Programming Theory & Fundamentals: naming variables

Published on Wednesday, November 28, 2012

Description

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 http://www.youtube.com/playlist?list=PLGJDCzBP5j3wrKpj55pvjv9vUiZADhjXe Other links of interest: -- Our YouTube channel http://www.youtube.com/user/easylearntutorial -- Visit our website http://www.easylearntutorial.com for more text and video tutorials, updates, and upcoming tutorial articles and events -- Like us on Facebook http://www.facebook.com/easylearntutorialonline -- Follow us on Twitter http://www.twitter.com/easylearntuts

Copyright © 2014-2017 EasyLearnTutorial. All rights reserved.