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

3

u/[deleted] Mar 22 '22

On the other hand: being good at understanding and debugging obscure code like that is a really useful skill worth learning.

Not only it will help you easily take over the job when that guy leaves the company, but it will also help you understand your own code years after you stopped working on it because, more often than not, you (and me) are that guy 🤣

2

u/BullCityPicker Mar 22 '22

Yeah, so is knowing how to unclog a toilet. You're right, but I DO get to bitch while doing it.