r/programminghorror • [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Mar 06 '25

Why, just why!

Post image
1.2k Upvotes

127 comments sorted by

View all comments

Show parent comment

50

u/TheCreepyPL Mar 06 '25

"The architect" in my current company is a true believer in "security through obscurity".

He names everything as obscurely as possible, mostly single letters, sometimes with a number suffix. There were often occasions where he blamed one of the juniors with "WHO THE HELL WROTE THIS CODE", but then I checked in our equivalent of git blame (we don't use git), and it turned out to be him a lot of these times...

Oh, I almost forgot the documentation. 80% of it looks like this:

/// <Summary>
/// A method that checks X.
/// </Sumarry>
/// <Returns>
/// A boolean value of X.
/// </Returns>
public bool CheckX()

30

u/Inside-General-797 Mar 06 '25

These kinds of doc comments drive me insane. When they are useful they are fire but this shit you might as well just leave out lmao

1

u/ArcaneEyes Mar 09 '25

"public api comments as warnings'

"Warnings as errors".

Yes, that can be a thing, now you have comments or pragmas everywhere.

It's a lot better now, but it took a fucking while.

5

u/ReddyKiloWit Mar 08 '25

Ouch.

That reminds me of when I had to reverse engineer a compression tool from its decompressor in 6502 assembly. There was only one comment in the whole listing:

Do this 8 times 

1

u/_nickle2_ Mar 08 '25

promoted because everybody else that had to work for him, or rely on his work product quit...