Quote:
Originally Posted by NP_Complete
Found this in some code at work today:
Code:
class Cnt {
int totalCnt = 0;
In all fairness, programmers do abbreviate stuff all the time, like desc for description and this code has likely been there for years. However, I'm not sure if this was someone too lazy to type out "Count" or someone thinking they were being funny.
I have a troubled history with the word that first came to mind when I saw this. I'm trying to not be all overly-offended feminist about this, but it is a little triggering seeing this. I'm not the only one who saw that word first, right? I mean, I actually had to read the code to figure out what it was supposed to be.
|
I saw it immediately too, but that might be because I was expecting something or else you wouldn't post it. At the same time, I was aware it's shorthand for count immediately, too.
Probably fair to wonder if this was someone's idea of a joke since tech industries are such sausage fests.
I'm probably more bothered because totalCnt seems like a repetitive name than anything, but I've also not had any experience of the c word in real life.
ETA - abbreviating count seems a bit much. I mean, they didn't abbreviate total and that has the same number of letters.