-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

PLCs for Beginners
By :

Believe it or not, one of the keys to a well-written program is the naming conventions of variables. If you think back to our apartment example in Chapter 4, how many times have you said that you’re going to go visit the residents in apartment 123 at 456 Jay Street? Chances are, you’ve never said that. On the contrary, you’ve probably said you’re going to go visit your friends Bob and Sarah. Memorizing Bob and Sarah’s address is simply too difficult to do and keep track of, especially when you are a social butterfly and have thousands of friends. Programming is no different. A variable’s name adds context to what the value is and its purpose in the program as such, so to keep your code base clean and concise, effective naming is a must! So, in this section, we’re going to look at how to properly name variables and proper naming conventions.
Before we start exploring proper naming conventions...