...seeding the database with strings that could be construed to create a hostile work environment...
That's more or less where I was going with that line of thought - even if not truly a "hostile environment," at least enough that finding people to take the job is pretty difficult - or perhaps enough that the postal service doesn't think it's funny that they're delivering mountains of mail to Mr and Mrs C*********g F*******s at a couple hundred different addresses.
Never give up privacy, even under duress. When this kind of thing happens, meet them on a level playing field and corrupt their database with junk info.
That's nice in theory, but in practice, the "top priority" of code is to meet the deadline and get shipped. Everything after that is secondary.
This. This is exactly why 99% of code written under corporate auspices sucks major ass. Try getting a Director/VP/C-suite to understand why unmaintainable, shitty code sucks and hurts the business. Believe me, I've tried. Maybe 1 in 100 understands. The rest have the same response: "we met the ship date, it works. So what? And by the way, since you can't understand that, you're not an asset to the business. So don't bring me this crap again."
I don't know the answer to that particular debacle, myself - such that I usually just shut up about it and tell the devs working for me that, "yes, you can write shitty code. It will get you a pat on the back from management and a slap in the face by the guys you have to work with every day. Your choice."
If management wants your opinion of your coworkers, they'll ask for it.
Not necessarily; having managed a few dev teams I actually appreciated it when someone would come to me with issues like this (privately, non-confrontationally, without a lot of arrogance, etc - any of those things would probably just make me ignore you). Management isn't telepathic; they can't see every single problem like magic.
That said, if your manager a) doesn't have at least enough understanding of coding best practice to know why the stuff you're bringing him is bad, b) is an arrogant asshole himself, or c) is one of those types that believes the ladder to success is built from the heads of underlings, then yeah - STFU. And start job-hunting.
That link also contains data about traffic deaths - 11.2 per 100,000. Still much higher than gun deaths. So cars are far deadlier than guns.