2-1 Discussion: Naming Variables
While there are no strict rules regarding what makes a variable name “good” or “bad,” it is useful to consider factors that may improve or detract from the clarity of a variable’s name. In your initial post, provide an example of one variable name you believe to be successful and one example of a variable name you believe would need to be improved on. Explain your reasoning behind each of your selections. Why is it important to follow best practices in programming?
In response to your peers, consider the following:
· Do you agree with your peers’ examples of good and bad variable names? Why or why not?
· What could happen if best practices in programming are not followed?
· Why are variable names an important part of best practices? Use your peers’ examples to support your perspective.
· What do you believe would be the outcome if the purpose of a variable changes over time? Use one of the variables your peers selected to explain an example of the impact a change could have.