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

5

u/dipdipperson Mar 23 '22

We've got someone like this at my job. He's an absolute turd of a person and a complete asshole to everyone around him. Despite this being Sweden with very strict labour laws, we could get rid of him relatively easily, but...

He's one of the founders of the company and owns a large share of it (but was voted off the board for being a complete fuck head). That doesn't mean that he's immune to getting sacked from his job at the company, but...

He built the platform on which we deliver our services to our clients. The code is pretty much what OP describes, zero comments, even less documentation, cryptic naming conventions, etc etc etc. If we got rid of him there's no way we could maintain it. We'd have to stop delivering our services to our clients while we build a new platform, that will of course have to cater to the design quirks of the then- obsolete platform, because so many of our applications are built with them in mind.

During that time, we'd have to suspend services to all clients for God knows how long. That's an immediate loss of millions of dollars and we'd likely lose all our clients' trust and future business.

The guy is severely overweight, in his late 50s and has a temper problem, so the heart attack is simultaneously inevitable and not very far away, at which point we'll just have to do what I detailled above.

Come to think of it, I should update my CV.