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

Show parent comments

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

1

u/Rote515 Mar 23 '22

Imo we absolutely should have switched, but there’s millions and millions of lines of code that would need to be switched, and the cost would be impossible to eat, especially since most the devs here don’t understand concepts like OOP as our language doesn’t implement them.

1

u/[deleted] Mar 23 '22

You’d probably cut a few million lines by switching 🤣