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
0
u/vi_sucks Mar 23 '22
Until the code base gets ported. Or the commits get squashed during a merge. Or the commit is cherrypicked.
And that's not even counting how much more difficult it is to read theough 2, 3 or even 10 years worth of git commit logs to try to find the one commit that made the exact change that you care about.
No, they don't. What people mean by this is that comments don't accurately capture what the code is actually doing. My point is that you should never expect a comment to accurately describe what the code is doing. It's not a lie unless you make an incorrect assumption.