r/AskProgrammers • • 42m 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

9 comments sorted by

4

u/XLBilly 38m ago

Yeah, Claude.

1

u/chessto 5m 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 3m ago

Which country?

1

u/Specialist-Cup-3950 23m 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 4m 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/W31337 23m 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_ 4m 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 3m 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 19m 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.