9

Saw a counting variable in code. It was a necessary counting variable, so that is not what this is about.

However, this is a US based company that has a somewhat PC (no cursing) and professional cultural facade.

This variable was called "cnt". How the hell did that one not get caught in peer review? I have gotten dinged for having "possibly offensive" variable names (think Point5Hit though I have never written that as a variable name). It was funny. But I have changed it because that's just lazy.

Comments
  • 3
    Wow, what. Is this for real? I thought that PC crap was a joke from Southpark originated from those Tumblr pages. Didn't know that it is actually enforced 😮

    Damn... I think I would be fired within 4 hours if I ever worked in the US.
  • 2
    @erik404 not all US companies. But the no cursing thing is a biggy at my current job because the corporate culture is pretty conservative. Generally your coworkers won't care but the higher ups get all huffy. I guess technically you could get written up for abuse/harassment. The US always had a weird relationship with cursing.
  • 1
    @erik404 and as far as the South Park thing: there are some people in the US that are like that, but most "PC" people I have met are fairly reasonable.
  • 3
    @projektaquarius ah yeah, makes sense somehow. I worked for the US department of IBM in South-Africa back in 2007. Got fired within 5 months because "erik404's character is incompatible with the ethics and values of IBM".

    Wankers.
  • 1
    @erik404 ugh those. I got fired for that reason once. Usually it means you pissed someone off or that they know you are doing something wrong/bad but can't prove it.
  • 2
    @projektaquarius Probably yes. I wasn't bad at my work but not the greatest either. I refused to come in suit which they made a big deal out of it. (it was fucking 35 degrees there, I mean come on!!), also, I am Dutch so I speak my mind, preferably with a couple of curse words here and there.

    I wish you all the best there and from now on, in your honor, I will use $cnt instead of $i.
  • 1
    @erik404 good to know I have had some positive impact in the world 😁
  • 2
    Really? Someone cares about what variable names might read at a glance?

    I mean, obvious intended crap like `const shit = "fuck you, Ashley"` wouldn't fly with me, but I honestly couldn't care less about `cnt` or `pen_is` or `f_uk` or even `Screw.yo.mama` if they make sense in context.

    "Oh, but someone might possibly read it as ___ instead! That's so offensive! What if they're like, a client or something?" Like, shut your mouth. seriously. Getting pissy over hypothetical offense? fuck right off. You're lowering the average IQ of the entire planet each time you breathe. Please cease and desist.
  • 1
    @Ashkin THANK YOU omfg. Like I have done offensive comments and variables before (usually out of frustration and they almost never make it to peer review) and I would understand if they got called out. But seriously, of all the stupid things to complain about, that one is close to taking the cake. I did change cnt to count, but that was more because of OCD.
Add Comment