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

1.2k

u/HashDefTrueFalse Mar 22 '22

This was his job security. Guess he didn't need it anymore... :)

If you can actually read any code I write, you might be able to replace me. Unacceptable.

477

u/[deleted] Mar 22 '22

I met a guy like this at AT&T. Only person who knew this absolutely ancient system. Never did any documentation. Refused to cooperate with anyone asking for details. Reason? Job security. He was old. He knew the second someone figured out how to work the system or replace it he was gone.

194

u/HashDefTrueFalse Mar 22 '22

So you're saying it works... :D

I've met similar. An absolute bastard when they leave too! Like maybe you could have pulled a Junior onto the product and at least attempted to leave some documentation or knowledge behind once you knew you'd be leaving, instead of spending your 3 month notice period doing feck all mate! Cheers.

0

u/[deleted] Mar 22 '22

[deleted]

→ More replies (8)
→ More replies (5)

46

u/BassDaddy420 Mar 23 '22

This is what my uncle does with some heavy machinery in steel mills. Literally sits and deciphers coding languages from the 80’s. Doesn’t have a timeline, doesn’t give a timeline to his superiors, pretty clutch

→ More replies (1)

88

u/ipreferanothername Mar 22 '22

i worked with some jackass who only used VB script and ran it through excel -- said he was a 20 year dev. showed him VSCode and tried to get him into powershell; no go. tried to get him to have the boss buy him a VS license because....i mean, to be fair, he did automate a lot of work. nah, excel was fine.

and he wouldnt share ANY of his work -- i wrote powershell and javascript left and right, documented it, stored it shared with the team, and even walked them through the complex scripts.

this guy? no. hid all of his work, and ran the VB he did through the excel debugger. he still works that way. i was doing all sorts of work he couldnt figure out how to do and could not get him to budge on the ridiculous way he did anything.

37

u/HashDefTrueFalse Mar 22 '22

Awful teamwork on their part. Far too much liberty given by techical management too. I felt sorry for you just reading that.

Dometimes they're just too set in their ways. You can't change them. Move onto bigger and better things. Guessing you did.

17

u/vladamir_the_impaler Mar 22 '22

Move onto bigger and better things. Guessing you did.

THIS, nail on the head.

17

u/exploding_cat_wizard Mar 23 '22

You know, given your username, that phrasing makes me a bit nervous...

20

u/vladamir_the_impaler Mar 23 '22

Hah, I'm not even sure where to begin with your username...

110

u/neekyboi Mar 22 '22

The day I documented the process and spent KTing the codebase, I got terminated for no reason whatsoever and was replaced by the guy I KTed. So lesson learnt.

50

u/Attackontitanplz Mar 22 '22

KTing? Knowledge transfer?

18

u/neekyboi Mar 22 '22

Yep

0

u/[deleted] Mar 22 '22

[deleted]

37

u/Mako_ Mar 22 '22

IBM uses the term "KT" a lot. IBM contractors also tend to replace employees after the KT sessions.

0

u/[deleted] Mar 22 '22

[deleted]

33

u/tommy_chillfiger Mar 22 '22

I don't care if it would benefit me to do this. I won't do this. It's bullshit and so cynical I'd rather suffer the consequences than participate. I can always find another job but I need to maintain my integrity.

→ More replies (6)
→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (4)
→ More replies (4)

97

u/YellowSlinkySpice Mar 22 '22

This happened at my work. Although the guy couldn't handle the stress of his programs not working so he quit.

Not sure what he is up to.

He was our first Computer Science grad, the worst programmer we hired. (We have since hired other computer science grads and they are fine)

38

u/[deleted] Mar 22 '22

They are hit and miss. We have had good and bad.

15

u/[deleted] Mar 22 '22

Stuff like this makes me wonder, what is the interview process like if they’re getting through?

15

u/[deleted] Mar 22 '22

Well I wasn’t part of the process the last time we had one. Apparently they talked a good talk.

→ More replies (2)
→ More replies (2)
→ More replies (16)

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.

→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (7)