this post was submitted on 24 May 2024
294 points (98.0% liked)

Programmer Humor

31214 readers
1222 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
294
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 1 month ago (2 children)

What am I looking at here?

[–] [email protected] 52 points 1 month ago (1 children)

There's a string stating that the code should not be passed or the employee will be fired. I'd assume this was a test to see if an employee meant to be doing code review was actually doing them. Spoiler, they were not, as OP said they found this in production code.

[–] [email protected] 12 points 1 month ago (2 children)

I'd go a step further and I suspect it's a peppering string (i.e. fixed string you add to hashes to defeat rainbow tables). I'd really hope it isn't as you mentioned because gosh that sounds like a toxic workplace if someone is just leaving landmines around purely to get someone fired.

[–] [email protected] 17 points 1 month ago (1 children)

More like, you know damn well that Jim keeps passing code reviews without reading a line in them, he's been talked to, still does it, and you need something actionable to prove it so that you can get someone's ass in his chair who does their job.

[–] [email protected] 10 points 1 month ago

From the stories I've heard from corporate software employees, this does sound like exactly the kind of thing you gotta do to show some manager the guy is buddy-buddy with that they're actually not doing their job. And even then they didn't listen.

[–] Reddfugee42 -2 points 1 month ago* (last edited 1 month ago) (1 children)

Would that imply that all quality control is evil?

[–] [email protected] 0 points 1 month ago (1 children)

No, I don't think so - it's just a dick move to go out of your way to sabotage someone. If they're fucking up just visit their existing mistakes - don't waste time contriving new ones.

[–] Reddfugee42 1 points 1 month ago

So when TSA sends fake guns and bombs through luggage, it's not qa, it's just a dick move to sabotage them?

[–] [email protected] -3 points 1 month ago (1 children)

My guess is a "solution" to the age-old problem of needing to store a secret in a file that the user can download, thus making the entire system insecure.

This "solution" appears to be either that the string itself is so outrageous that the user would not believe that it's the real secret when it is in fact the real secret, leveraging security through obscurity, or else it's there in place of the real secret that cannot be revealed under pain of ~~death~~ firing, and therefore is accidentally being used instead of that intended secret... so it's not secret after all.

Unless they're doing something incredibly clever to substitute that secret string for the real thing when the time is right and doing it in such a way that the user can't intercept, someone's getting fired.

[–] [email protected] 4 points 1 month ago

No, it's not. It's part of React internals that you shouldn't use because your app will break. It's a warning for developers using React. It's not a secret of any kind.