r/learnprogramming • u/BullCityPicker • 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
2
u/Traches Mar 22 '22 edited Mar 22 '22
Sounds like you're working in a different world than me, because porting from SVN to git is just not a thing I'll ever have to deal with. I'll concede that if you have a lot of technical debt, comments are the least bad way to document it. I also don't have a problem with a brief description at the top of a class, or method descriptions used to generate API docs and the like.
"Neat" sounds a lot like "clever", which is usually the opposite of obvious. Names should be simple. Also if your names are long, your namespace is too big. Long names suck.
Two hard problems in computer science...
Edit: just noticed your username. Guess we disagree on quite a few things!