r/learnprogramming • • Mar 22 '22

Don't be that guy.

I just took over a project for a guy who left. Don't be this guy:

  • ZERO comments in your codebase.

  • One and two character variable names with no discernable pattern.

  • Comment characters used to comment out big chunks of code for no discernable reason.

  • No error checking.

  • Reliance on data files that you forgot to include or explain, going in to meaningless data frame names.

  • Making outrageous claims about how much your code improves things with zero baseline performance.

People like this think you're an idiot because you can't make their code work, and get to be all smug. We will track you down and find you. You will need references someday....oh my.

2.6k Upvotes

427 comments sorted by

View all comments

Show parent comments

-4

u/BullCityPicker Mar 22 '22

Ha ha ha. Like I could possibly know ANY of these things? I don't even know where the data files for the code are.

This excuses many things. However, if the only use of the comment character in the entire code base is "I don't want this code to run for some reason", there's no excuse for that. I doubt I've ever written twenty straight lines of code without a comment in it. To be fair, I am a pretty verbal person who minored in English.

3

u/dphizler Mar 23 '22

The point is that you don't know. Heed the advice and get to work.

2

u/biggamax Mar 22 '22

Have you cleaned up the project yet?