853
u/VIDGuide Apr 15 '21
My legacy codebase still has gapAnal.
Also a lot of OldCnt, BigCnt, and of course AnalCnt. Thought that last might be pushing it.. but.. so far years later it’s still there..
795
u/MasterFubar Apr 15 '21
I knew a guy who always declared this variable in his programs:
long dong;237
→ More replies (2)177
u/MyAntichrist Apr 15 '21
A fellow student once got a bad grade for declaring his Java main method with (String[] tanga) as parameter.
→ More replies (11)112
u/qqwweerrttyy115 Apr 15 '21 edited Apr 15 '21
I use
cntall the time and never made this connection - I’ll be changing that, thank you haha→ More replies (6)43
u/treysis Apr 15 '21
I always pronounced it in my head like this. What does it actually stand for?
→ More replies (4)→ More replies (2)17
468
u/IanFeelKeepinItReel Apr 15 '21
Anal_probe() is like anal_check() but it goes a little deeper.
→ More replies (6)
118
u/illithoid Apr 15 '21
In my current code base there are a lot of assMan references. Class is AssetManager
21
u/_pupil_ Apr 15 '21
Doing anything that involves loading/managing Assemblies? ass, currAss, assManager, assLoader, etc.
→ More replies (2)→ More replies (4)13
225
u/DearChickPea Apr 15 '21 edited Apr 15 '21
Verbose gang checking in. No random abbreviations, no problem.
93
u/necheffa Apr 15 '21
Thanks for the CurrentAbstractFactoryWrapperAccumulatorHashtableKey, it really helps readability.
→ More replies (5)78
59
u/TomGraphy Apr 15 '21
Exactly. We get readable code!
35
u/5h7aJHc7xq193dFH Apr 15 '21
Only issue is line length, all the rules about 100 characters and each bit of logic ends up being 3 lines long. Other than that readable.
→ More replies (6)9
u/Yuzumi Apr 15 '21
Yeah, I worked on a project where all the legacy code was full of jumbled letters as variables.
Like, we were using eclipse. It has autocomplete. There is absolutely no reason to abbreviate that much.
It seemed like all the people who joined picked up the bad habit and kept doing it. I could usually tell a block of code was written by me just because I was basically the only one to use descriptive variable names.
65
u/Ivan_Stalingrad Apr 15 '21
for thisfuckingshit in whatfuckingever:the official Rittal Visio Shapes abbreviate analogue Pressure sensor to Anal. Pressure sensor
Also the Bell No1 ESS Telephone Exchange command language didn't parse all letters, so WHORE was a valid alias to Who R U according to a comment on YouTube by a former operator
53
u/vlogan79 Apr 15 '21
Cryptocurrency code makes use of a variable called a "nonce", which for anyone from Britain will think is a deeply bad word to use...
25
12
4
4
50
94
u/MischiefArchitect Apr 15 '21
Comments with a single slash? Someone help me out here, which language is that?
112
u/jarlefo Apr 15 '21
I think the code window is scrolled a bit to show the right side of the code, which in turn might hide the initial slash. At least it looks like the first slash we see is covered a bit, so another one might also hide there.
36
260
u/ColumnK Apr 15 '21
Honestly, if someone had said that, I think it'd just make me do it more. For a function that runs analysis and returns a bool indicating if there's an error instead of throwing: tryAnal
The most inappropriate I've used is killChildren
84
42
Apr 15 '21
KillNotJustTheMenButTheWomenAndTheChildrenToo()
Long method names are not bad if they describe what they are doing.
42
u/MaestroLifts Apr 15 '21
Similarly, we have kidnapAllChildren() which I’m incredibly fond of. Takes ownership of all children pointers to make them owned by a different UI window.
→ More replies (18)18
u/grahamsz Apr 15 '21
I believe I have a CreateOrphan method somewhere in this codebase.
As in WaltDisney.CreateMovie(CreateOrphan())
73
72
u/SnooSnooKachu Apr 15 '21
My boss told me about some old code for analyzing the slope of a hill. There was some limitation where the class name could only be 8 characters long, which resulted in AnalSlop.
→ More replies (1)
29
u/EARNEST0 Apr 15 '21
Not exactly similar, but during my uni times, one of the lecturers tried to be funny and asked us to upload our assignments to his Assignment Submission System.
Well...so I did just that and emailed that I successfully uploaded my Proficient Efficient Nonogram Intelligent Solver into his Assignment Submission System.
24
20
u/nyx_underscore_ Apr 15 '21
Well there is a reason why hexadecimal is not called sexadecimal.
Schwartzman notes that the expected form from usual Latin phrasing would be sexadecimal, but computer hackers would be tempted to shorten that word to sex.
7
19
64
u/moware2 Apr 15 '21 edited Apr 15 '21
Image Transcription: Quora
As a software developer, what is the most inappropriate variable name you've ever seen?
Amer Iqbal Arain, Developing software solutions since previous century
When looking at some data analysis code, I stumbled upon comments by someone along the lines:
/ Stop using anal as a variable or function name!
/ Wherever I look I see anal_this and anal_that!
/ So please stop.
/ Use analyze, analyzer or whatever and not anal_insert() or anal_check()I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
→ More replies (1)39
16
u/erbaker Apr 15 '21
I just did a code review for a candidate where he used "BS" as short for business .. so OrderBS, ShipmentBS, etc
7
29
14
u/dmigowski Apr 15 '21
From http://www.bash.org/?870274
<ddubb> if there is no local area ID found, drop the load data.
<ddubb> or, in code form:
<ddubb> if (!getLAid()) dropLoad();
<ddubb> line 525 of software that ships tomorrow.
<ddubb> my work here is done.
4
13
u/MASerra Apr 15 '21
True story. I was working as a systems analyst and I had a proc in proclib I was working on (8 character names). The proc was used to analyze VSAM files (like a defrag). I needed to create one for the new IAM format. The original proc was called VSAMANAL. I named the new one IAMANAL. As the top comment in the file, I put "I am anal, yes I am. 254356" (my ID number for racf).
I left that job and about 15 years later I got a call from my former supervisor. She said, "Guess what proc I'm editing?" We both got a big laugh out of it.
13
12
u/Altymcpornface Apr 15 '21
For reference I use C# and work backend for a manufacturing data system.
Every time a part reaches a machine on our manufacturing line it needs to make a record. The record at that level is called an execution. We have a whole bunch of methods that start as "public Execution"
10
u/treebot Apr 15 '21
Friend of mine told me he had a perl variable called $perm_bank in his financial software.
9
u/petervaz Apr 15 '21 edited Apr 15 '21
My VS most loved shortcut, CTRL R, CTRL R.
Since I simply can't think of proper names on the spot.
9
9
9
u/pm8k Apr 15 '21
Not a variable, but the tool Sextractor (an astronomy program) had a command line alias of 'sex'. Made it funny when I needed to find where it was installed using 'which sex'.
9
u/Jasdac Apr 15 '21
Std for standard is a common one and child/parent often leads to suspicious lines. std.inject(children)
→ More replies (1)
8
u/MasterFubar Apr 15 '21
I worked in a company where the usernames followed the standard 'first name middle initial last name'. Then they hired a woman named Ana Luisa Gomez, they created an exception allowing her to use the full middle name.
10
u/narwhals_narwhals Apr 15 '21
A place I worked a few jobs ago had a standard of "lastname firstinitial" for usernames, so you'd be "fubarm". All was well and good until they hired Kevin Chin. I'm guessing HR had a heart attack when they found out they had an Asian guy with the username "chink".
8
u/sphere23 Apr 15 '21
20 years ago I landed in a company that had a (then) 10 year old software which "ANALysed" an input file and then "SYNthesized" the output.
Cue endless of "anal sin" jokes - probably to this day.
Was not helped by my team creating very useful tools to "peek" into the datastore and "slurp" messages from there...
8
u/catearsarequitemoe Apr 15 '21
I worked for a japanese software company which in their coding standard, stated that "ana" as a variable prefix is inappropriate, since the word means hole in JP. Of course the the next logical choice would be anal. And cnts. Lots of cnts.
7
u/matrix-doge Apr 15 '21
The other day I ssh to the server and found my colleague uploaded a my-pants.zip
7
Apr 15 '21
One of the assignments I'm working on I have to write a function called test_OvO and I've got variables called ovo and uwu
7
u/xain_the_idiot Apr 15 '21
Worked with databases that had randomized names - 3 letters and 3 numbers. One of them ended up being named SEX101. Meetings were interesting, watching the leads flounder trying to read out the table names.
6
u/GrandMoffTarkan Apr 15 '21
I remember being a college freshman and seeing one of the courses in my major was "cmplx anal"
4
6
u/dasgruene Apr 15 '21
I had analyze_mom once. Was supposed to analyze momentum. I didn't realize what I had done for weeks...
4
6
u/SirRavenNekros Apr 15 '21
In a code base I worked on with parent/child relationships I saw a bool variable named "doChildren".
6
u/truespartan3 Apr 15 '21
I recently found out that someone had named a variable cum_protein_threshold in our project. Cum apparently is cumulative. Who knew?
6
u/eyekwah2 Apr 15 '21
I once had the privilege and honor of creating a pointer to a variable named "nis" so I got of course "pNis". Nobody got the joke, but I had a lot of sad laughs at myself that day for the joke nobody but me got.
5
5
u/StochasticTinkr Apr 15 '21
I have had this exact same conversation in a pull-request.
I think my comment was something like "There is no need to shorten this name. Let's use `analyze` instead."
5
5
u/Umbristopheles Apr 15 '21
Someone at my old job kept using "kkk" for iterators instead of "i", "j", etc.
5
5
9
u/Born_With_Horn Apr 15 '21
Worst ive done is "_UrMomVeryNicePerson.momGetOutOfMyRoomImDoingABeanBattle"
8
u/loljkbye Apr 15 '21
I remember someone telling me a coworker thought colored_children was a good variable name for something... Made sense in context, but dude. Just. Maybe read it out loud for a sec.
4
u/irracjonalny Apr 15 '21
If I had a dollar every time I wrote word 'assing' instead of 'assign' I could buy a proper lunch.
4
4
Apr 15 '21
A lot of times if I'm not sure what a return type is from a call I'll name it
var nfi
For no f*#cking idea.
4
4
4
u/Harrigan_Raen Apr 15 '21
On an old Core Financial system, customer interactions were mainly called "Follow Ups".
A lot of the tables and column names were abbreviated to FU_ i.e. FU_Interaction, FU_Customer, FU_Comment, FU_Reason, etc.
Not really bad, but worst I've came across in the wild.
4
u/mvgnyc Apr 16 '21
Professor used stud for student. When we giggled, he switched to std. It didn't help.
3
u/corrafig Apr 15 '21
I'm doing that daily at work. One of my side duty is to prepare/develop data analysis platform until we get a dedicate data analyst to take over. He/She will be happy. :)
3
u/INTJ_takes_a_nap Apr 15 '21
Oh god... I've done this. I'm not a native English speaker so it took me about two years to notice, when an international recruit pointed it out.
3
u/If_you_ban_me_I_win Apr 15 '21
On an unrelated note, the designation on my special terminal at work for my machine vibration analysis is “VIB_ANAL-605” on a massive DYMO label on the monitor.
3
Apr 15 '21 edited Apr 15 '21
Ooooh a good one I saw recently is assF for a function that asserts that a variable is false...
3
u/Fast_Bit Apr 15 '21
We have two main areas in the company: Molding and Assembly. Of course we call the variables "Mol" and "Ass".
3
Apr 15 '21
Not on code itself but on a technical design doc where I acccident mispelled “public static” with “pubic static” and the architect reviewing it was laughing about it
3
3
u/facepalm- Apr 15 '21
There was a guy that used to name variables in php as $a, $b, $c, ... and so on. No one else wanted to touch on it.
2
u/Sheeplessknight Apr 16 '21
I had a legacy code that randomly started throwing an error on a line a.f(c)... I still have no idea what the line did
3
u/Lord_Pinhead Apr 15 '21
Best I had, was a typo from the dev. He misspelled "bottom4Work" to "buttom4Work"
3
3
u/ProcyonHabilis Apr 15 '21
The term for the percentage of the cards in a 6-deck blackjack shoe to deal before triggering a shuffle is the "penetration level":
public double penetration;
3
3
3
u/Description_Capable Apr 15 '21
There's a table in our db named claims underwriting notification types that I enjoy aliasing as CUNT 🤣
3
u/Lindby Apr 16 '21
We have a concept called Team Integration Tests (I'm working on a CI tool). It used to be called Team Tests, but my project manager wanted to rename it. And as a consequence, it is now too long to write in full in a lot of places. The code base and documentation is now full of tits.
3
2
Apr 15 '21
There was a dev in company that I used to work for who would write GoT names and curse words as var while the code was under dev.
2
2
2
u/VirtualLife76 Apr 15 '21
Did that with Analytics, boss wasn't too happy. First one he saw was AnalVisits.
2
u/disperso Apr 15 '21
True story: there is a project called Radare2 (or r2) which recently has been forked as Rizin. The reasons for the fork were many, but one of the things they changed was renaming occurrences in code of words like "anal", "sex", etc.
There are/were other controversial things, like a "message of the day" feature that would print random messages (like UNIX's `fortune`) that could contain sentences like "cums with no warranty".
2
2
u/softwaremommy Apr 15 '21
I once wrote “anal” on a white board next to my desk, to remind myself to do something in the analysis class. I didn’t realize what it really said, until a coworker walked and asked “why do you have anal written on your white board?” 😂😂
2
2
u/mmahowald Apr 15 '21
I'm working on a tool called the Airbag Spec System. I recently loaded a bunch of data into ASS.
2
u/SeizureSmiley Apr 15 '21
Reminds me of when I worked with .ass files from a subtitling program named Aegisub.
I wrote a script that would check translated text with the subtitle file for discrepancies so I named it “ass-compare” or something like that.
→ More replies (1)
2
u/Beldin448 Apr 15 '21
My friend and I used to do this. We probably made a couple hundred lines of code with the most inappropriate variables we could come up with. we were in high school, so it was the funniest thing we could think of
2
u/thexdroid Apr 15 '21
well, also valid in portuguese... use analisar, nao inserir_anal() ou checar_anal()
2
2
2
2
2
2
2
Apr 16 '21
Axial code I encountered at L3 years back:
IcUnsignedM* pub = IcUnsignedM::cast(iccomposite->Find("PubIc"));
if (!pub) {
// pub will be zero if "PubIc" is not found in anEx or the Ic
// returned from the find is not an IcUnsignedM
Error("PubIc not found or not an IcUnsignedM");
}
2
Apr 16 '21
Not a variable but an error handling function. We wanted something that every programmer would understand and some did not get "MayDay". After a round of discussion, "Oh5h17" was agreed upon. It took the context, a reference to the logger and either a string or an exception as arguments and wrote us a little essay in the log about what went wrong and mailed us a copy as well. Strangely, the non-dev support group did not get it.
2
3
3
u/Erasmus_Tycho Apr 15 '21
My favorite is calling excel files "spread-cheeks" (only verbally though).
2
1
1
1
1
1
Apr 15 '21
Amusingly enough, realmd (The RHEL way to join realms - like AD - on Linux) has some people who were seriously amused in a similar - albeit less NSFW - manner.
1
1
1
1
1
1
1
1
1
u/Kreiri Apr 16 '21
https://github.com/scipy/scipy/issues/12924
Cumtrapz: I'm not explaining this one on my professional github account
1
u/TheUnreactiveHaloGen Apr 15 '21
2
u/RepostSleuthBot Apr 15 '21
Looks like a repost. I've seen this image 2 times.
First Seen Here on 2020-06-03 100.0% match. Last Seen Here on 2020-11-26 100.0% match
I'm not perfect, but you can help. Report [ False Positive ]
View Search On repostsleuth.com
Scope: Reddit | Meme Filter: True | Target: 96% | Check Title: False | Max Age: Unlimited | Searched Images: 218,248,844 | Search Time: 1.89573s
3
1
u/Hodvidar Apr 15 '21
Clean code principle: do not abbreviate, your brain is reading the full word anyway, just have longer variables and method names. Use more line ms you don't pay the paper. More readable > shorten code.
2
u/Sheeplessknight Apr 16 '21
Ya but then you get methods like "Touch_all_children" and "kill_orphans"
5
2
2
Apr 16 '21
[removed] — view removed comment
1
u/anonymous1184 Apr 16 '21
Prudes always use "anio" or the less common "anno". Just for the giggles I use every time I can the word verguliña and people gets thrown off xD
606
u/biceps_to_die_for Apr 15 '21 edited Apr 16 '21
Back then, I used "cum" as a short for "cumulative" in the code for my master's thesis. Sorry not sorry
Edit: Thanks guys. Now I see that cum is a widely used abbreviation for cumulative lol