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/illkeepcomingback9 Mar 23 '22
The naming should describe the intent. Look at the code to determine if it is fulfilling that intent. If your code is decomposed into functional units this is not a monumental task that takes 3 days of emailing back and forth. But honestly it makes sense now, if you're accustomed to an environment where something like that could even be merged in to main in the first place, I can see why you are so reliant on excessive comments. Comments are a workaround for a deficiency in your coding standards and processes. If something like that made it past PR in my environment we'd be having email chains of an entirely different nature.