A programming mistake you want to avoid is naming things vaguely. In this video, learn how to avoid this mistake by giving objects names that are specific and relevant.
- [Narrator] A programing mistake you want to avoid … is naming things vaguely. … For example, let's say I have information … about the temperatures in Fahrenheit … for seven consecutive days in Santa Barbara, California, … and Memphis, Tennessee. … I stored the data for Santa Barbara … in a variable named T1, as shown here. … And I stored the data for Memphis … in a variable named T2, as shown here. … The names I gave these variables are vague … and do not indicate the nature … of the data stored inside these variables. … Now, say that these variables are used … in a project that I am working on with teammates. … Let's say that the variables were created … in the very beginning … and there is a point much later on in the project … where the section of code here is written. … Now let's say my teammates and I are going over our code … from start to end. … By the time we get to this section, … there's a chance that we may not remember exactly … what T1 and T2 represent … and when we read this section, …
Skill Level Intermediate
1. Avoid Mistakes in Coding Practices
2. Avoid Mistakes in Structuring Code
3. Avoid Mistakes in Handling Data
4. Avoid Mistakes in Machine Learning
Using redundant features1m 45s
Get started with Python1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.