2-1 Discussion: Naming VariablesWhile there are no strict rules regarding what makes a variable name “good” or “bad,” it is useful to

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.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

1) Briefly describe the major technology-related threats, risks, and challenges to protecting data. What are the major threats and risks?  2) The   “dark

1) Briefly describe the major technology-related threats, risks, and challenges to protecting data. What are the major threats and risks?  2) The   “dark web” is big business.  What is the “dark web”?  What threats does it pose to your personal/family     use and/or your organization’s use of technology and information?  3)

  Using Pandas to access data with Excel or CSV files. Use your approved dataset for this assignment. Requirements: 1 Import the pandas library Import

  Using Pandas to access data with Excel or CSV files. Use your approved dataset for this assignment. Requirements: 1 Import the pandas library Import the numpy library Import the openpyxl library Create a data frame and load the Excel or CSV file Add the optional settings pd.set_option(“display.max_columns”,None) pd.set_option(“display.max_rows”,None) pd.set_option(“max_colwidth”,None)