From the course: Python Data Science Mistakes to Avoid
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Not writing comments - Python Tutorial
From the course: Python Data Science Mistakes to Avoid
Not writing comments
- [Instructor] One of the most common mistakes in programming, is not writing comments along the way. Writing comments is a simple, yet very crucial practice. Comments help you document your thought process behind your code, as well as how your code works. Often, when you're working on a large project, you may not complete the project in one sitting. It's more likely you'll be working on it across a period of time. So, if you maintain good documentation in your code, whenever you return to your work, you have all the notes you need to know exactly what your code does, and you can easily pick up where you left off. Also, when you're collaborating with a team, you will often find yourself sharing your code with your teammates, and vice-a-versa. Reading the comments that each team member wrote in their code, will help all of you understand what's happening, and ensure that all of the different pieces of the project fit…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Not writing comments3m 11s
-
(Locked)
Not organizing your directory3m 11s
-
(Locked)
Not testing2m 36s
-
(Locked)
Not sharing data referenced in code1m 10s
-
Hard coding inaccessible paths3m 10s
-
Name clashing with Python standard library2m 26s
-
(Locked)
Not importing relevant libraries and modules43s
-
(Locked)
Naming vaguely1m 51s
-
(Locked)
-
-
-
-