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

37

u/unmannedidiot1 Mar 22 '22

If the system is so fucked up you risk being replaced so easily I wouldn't blame the guy acting like this but the system itself.

58

u/HashDefTrueFalse Mar 22 '22

Not sure whether I need to say this or not, but my post was a joke, of course.

Honestly though anybody can be replaced at any time. It's rarely what you know that keeps you in a role, it's often who you know and how well. If higher ups have the appetite or desire to replace you, none of this job security through obscurity shite matters. Management are famous for shooting themselves in the foot when hiring/firing and expecting everyone else to figure out the way forward, after all. I've never seen the guy nobody likes get the promotion because he's just so clever. I have repeatedly seen those who make effort to have great banter with higher ups get promoted over colleagues much more qualified.

Job security is mostly an illusion. You're only ever around until they don't want you around.

20

u/vladamir_the_impaler Mar 22 '22

We had a guy who wasn't an asshole, but he definitely architected systems to where he was basically the only one who could make things work and this did indeed result in job security for him.

Everyone non-technical thought he was just some badass running everything and that we really needed this guy when in reality he had designed things to be this way and none of the other devs cared enough to either say anything about it or try to change it.

Two days after this guy would go on vacation shit would start failing and breaking and they'd have to call him and get the low down on how to fix what was broken. I swear this guy must've had dead man switches on things to where if he didn't run certain manual processes every few days layers of the system would just stop working, and more would fail as more days passed.

After some years went by and modernization as well as some other changes took place I think they finally got tired of dealing with this BS and ended up hashing out why things were breaking when he wasn't around and how to re-do things so that it didn't happen anymore.

He's now in management and I've heard they are trying to get rid of him.

4

u/[deleted] Mar 23 '22

but he's in charge of all the paperwork XD

1

u/kratosunruly Mar 23 '22

This guy gets it! If you’ve got decision makers in your corner, you’re properly insulated