r/AskProgrammers • • 3h ago

Did you ever run into programmers that wrote purposefully bad code coworkers struggled to understand to make themselves appear very smart?

Bad documentation, breaking convention like misusing naming conventions or placing super.()__init in a way that it violates convention. Just code thats hard to unravel and understand because it has been done badly, but they strut around like they are some kind of l33t wizard?

3 Upvotes

13 comments sorted by

6

u/XLBilly 3h ago

Yeah, Claude.

1

u/chessto 2h ago

Yes, I've had coworkers obscure or obfuscate documentation or project documentation location to make themselves look "smarter" to PMs / Management.

And I've got some get to a point where they were also managing repository access and preventing people from working on things or making said things very convoluted to work with as a way to keep themselves on control of what's being done in the project.

Both were very successful with management and very not liked by people on their same level.

1

u/Mizamewmew 2h ago

Which country?

1

u/Specialist-Cup-3950 2h ago

No, not really. You'd have to be a bit silly to not understand that the less complexity you introduce the better you are. Juniors tend to do that because they haven't learned enough. AI sometimes tends to do that because they can act like juniors.

1

u/chessto 2h ago

I think AI does that because there's no penalty to it for AI, if anything making things more confusing to humans reinforces the feedback loop of needing AI which is what the company selling it would want.

1

u/Specialist-Cup-3950 2h ago

That might be very true and built in to them. More moneez

1

u/W31337 2h ago

I've once seen someone evicted from a company for making purposeful hard to understand data pipeline/interface. He told his coworker to never document so they couldn't get fired.

They fired him and he told the interim manager they needed him. The manager "we'll survive" and got kicked out. To us a few days to decipher and build it better and more efficient and document.

1

u/Icemourne_ 2h ago

You can do shit like that then it's small team and no one will look for at least few years and it has to be something important. But it won't work these days because AI can help figuring out how to untangle that mess

1

u/W31337 2h ago

This was 20 years ago but yes today you can't get away unless code is prohibited from being put in prompts like state secrets

1

u/gnufan 2h ago

Purposefully bad, no, as usually they have to maintain it. Definitely suspected some who saw lack of documentation (external and internal to the code) as a form of job security. 

But I'd seek to fire anyone I thought was doing that.

1

u/DrVanMojo 1h ago

I've written code using advanced techniques to solve advanced applications that was accused of being too advanced for the average dev to understand.

They would have preferred 10x as much code that took 10x as long to write and 10x longer to update than having to admit that they could still learn something new.

They didn't understand the problem it solved so they just assumed that the solution should be easy for any skill level to read.

1

u/Aendvari 1h ago

Once. He was let go in a group layoff. The "survivors" learned a lesson that day.

1

u/edwbuck 1m ago

Yes, and he was insufferable. He created his own clone of i18n for Perl, and I only worked on his team because the person that was asked to transfer to his team offered to quit instead, and I was new and lacked the foreknowledge that I could refuse.

It's the start of a very unpleasant and long description of how I lost some of my sanity working with the person, and not being able to quit because my wife needed health insurance to continue her cancer treatments.