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

369

u/In0chi Mar 22 '22

Don’t be the kind of company that lets this guy make even a single commit like that to the main branch.

129

u/v0gue_ Mar 22 '22

Yeah I agree, this one is on the company/owner of the codebase.

40

u/Rote515 Mar 22 '22

My entire company’s codebase is like this, it’s absolutely astonishing, 3k employees, no comments 1 letter variables everywhere, and lol we only have a main branch

19

u/vladamir_the_impaler Mar 22 '22

we only have a main branch

That was the drink-spit-out moment for me when I read your comment.

10

u/Rote515 Mar 22 '22

Welcome to my life.

2

u/BeardSprite Mar 23 '22

I'm right there with you, except we have three main branches.

5

u/[deleted] Mar 23 '22

That’s so ludicrous that I don’t believe you 🤣

3

u/Rote515 Mar 23 '22

It’s a company that uses its own proprietary languages, the root of which was created before C as such a lot of what we work with doesn’t conform to normal coding standards

4

u/[deleted] Mar 23 '22

Based on what you’ve seen, would it be reasonable to use common modern languages? I just can’t imagine the need to maintain your own coding language. That’s got to be one hell of a niche.

5

u/cockswain314 Mar 23 '22

And an insane one at that, that sounds like a nightmare of a company to hire-for/work-for, the whole thing

→ More replies (2)
→ More replies (1)

78

u/[deleted] Mar 22 '22

I suspect 1 man show and no version control.

→ More replies (2)

4

u/[deleted] Mar 23 '22

We had branches with our firstnames lol

16

u/toastertop Mar 22 '22

Not a problem when there's no git

9

u/Some_Developer_Guy Mar 22 '22

Yeah there not doing PRs

→ More replies (1)