Cleaning Up Your Script
00:10 And now let’s tackle the script as well, because that’s what’s going to stay around. And the first thing I see in here that I want to clean are all of this code comments that I used basically just as crutches to help me get along and build this script. But now that it’s built and that it’s working, I don’t need them anymore.
00:29 They don’t add anything, and they just clutter up the code. So I’ll go ahead and remove those. I think that the code that we wrote here is straightforward and relatively descriptive, so we won’t need any sort of code comments to describe what’s going on in the code.
"practice_dir". I think this is called
"practice_files". Yeah. Okay. So this is a little error here that I would’ve caught when running it, but let’s fix it right away. And I still have the task up top.
And that already looks much cleaner to me. So the last comment that’s still in here, this is a bit different because I had this in here so I could quickly swap between the
copy_dir/ and then the
practice_files/ directory, which is the actual one that you want to run this code on.
Become a Member to join the conversation.