4 ms·
I'm saying that Sal violated basic programming practice in one of the simplest 10 line programs that can be written. This is a canary. I didn't think that the
by ern 15y ago
I'm saying that Sal violated basic programming practice in one of the simplest 10 line programs that can be written. This is a canary.
I didn't think that the video (now dead) was particularly good, but I think that this is a bit of an overreaction. LPTHW doesn't seem to use PyDoc comments either. Would I be upset if he used C# and put a // comment at the top of a method, instead of a /// comment? Probably. Would I regard it as evidence that he wouldn't be able to teach programming? No.
He's not simplifying things by putting the filename at the top of the file: he's just wrong
Maybe this is a Python thing, but there's a semi-official, but fairly popular tool from Microsoft called StyleCop that forces C# code to have a comment with the filename at the top. Bottom line: putting a filename at the top is not regarded universally as a bad practice, even among professional programmers.