Wednesday, July 15, 2009

Swearing to Cope with Pain

Man, it has been a while since I last posted. I wanted to write about all sorts of things. Like successfully installing R for OpenSolaris using packages. Maybe about the uncertain future for OpenSolaris, now that Oracle pwns that. Maybe about coffee (see my byline, I actually haven't written one word about my addiction to the bean). Maybe about a candidate for a side project I've been mulling over, involving human speech parsing. But I've been busy, both professionally and in private life.

However, I found a wonderful article on Scientific American that is just so timely, that I feel compelled to post. Right here, right now.

Been quite busy at work, having been drafted to fight fires on a project that I now understand to be, simply put, a real death march project.

If you're in IT, then you know what I mean...

Crazed release schedules, dictated to us according to the customer's whims. Lack of basic, understandable documentation. Severe lack of a coherent, well-thought architecture. Largely apocryphal comments sprinkled in the code, probably mostly out-of-date and inaccurate. No unit tests, no automated builds. A test team working on a Frankenstein system comprising multiple web services and multiple db's, all the while claiming that a test sprint can be done in 1 hours' time. Argh, and don't even get me started on the misinformed decision to use Seasar2, which itself suffers from extremely poorly written documentation, even in its home language of Japanese.

So I've been suffering from recurring headaches, lately. The cause? Me banging my head on my desk, asking futilely, "Why, o dear lord, why?"

What is this global variable doing here? *wham*
Why is this method duplicated in several objects, but in different, unrelated packages? *wham*
Why are there 2 classes in separate packages but of the same class name that at a functional level are almost, but not quite, completely different from each other? *wham!*
Who the #$%! wrote this code??? *wham!!*
What the #$%! was he thinking??? *wham!!!*
What blockhead decided against unit-testing and automated builds?! *wham!!!!*

When I am coding, I often talk to myself. A lot. So much that the people that sit near me at my traditionally laid out Japanese office mention it. They mention it quite often, actually. And I find that if I am in fire-fighting mode, trying to fix code written (nay, slapped together??) by others, then I find that I begin to swear out loud. A lot.

Hallucinatory soliloquy? Generalized anxiety disorder? Just a tad schizophrenic? Tourette's?

No, none of the above. Not according to the Scientific American article Why the #$%! Do We Swear. No, I think the increase in my swearing out loud is in direct proportion to the amount of stress and frustration I am feeling at that time, and this outward vocalization is really helping me to relieve the pain I am feeling. It's a coping mechanism.

A brief excerpt:


The study, published today in the journal NeuroReport, measured how long college students could keep their hands immersed in cold water. During the chilly exercise, they could repeat an expletive of their choice or chant a neutral word. When swearing, the 67 student volunteers reported less pain and on average endured about 40 seconds longer.

...

How swearing achieves its physical effects is unclear, but the researchers speculate that brain circuitry linked to emotion is involved. Earlier studies have shown that unlike normal language, which relies on the outer few millimeters in the left hemisphere of the brain, expletives hinge on evolutionarily ancient structures buried deep inside the right half.

One such structure is the amygdala, an almond-shaped group of neurons that can trigger a fight-or-flight response in which our heart rate climbs and we become less sensitive to pain. Indeed, the students' heart rates rose when they swore, a fact the researchers say suggests that the amygdala was activated.


So you see, I am just trying to soothe my #$%! pain. I'm just trying to work it on out. Hell yeah, I can feel that dull ache receding...

2 comments:

Stephen L. McMahon said...

I wonder if they tried this experiment unobserved. So if a developer curses in exasperation and no one is there to hear it, does it still ease the pain? I work in a home office 4,000 miles from my nearest co-worker and I've tried most of the expletives that I know, both with no one listening and over the phone, but my pain is not subsiding. Maybe I should try some stronger words? Oh! Or maybe in German -- German curse words just sound SO much more effective!

In any case, I can certainly relate to your pain. The day that I cracked open a C# application written by my employer and found that it contained a single 3,000 line public static void main() that had 48 *ADODB* connections with the same connection string repeated for each one, I cursed. I cursed for hours! Every time I thought about it for the next couple of weeks I cursed. You should have heard the stream of expletives the other day when I found one of our guys had created a method that takes 31 parameters. I brought it up to him and he didn't understand the problem -- it worked just as he'd intended and that he didn't think it was poor design because he needed all those values that were being passed :|. I suggested to his PM that maybe he should review this developer's code before allowing him to check it in to the source control system and he also didn't see a problem with a method that takes 31 parameters 'if they are truly needed' :S. F*%$! I considered renaming the method to baskinAndRobbins because I knew nobody would notice. I sounded like Ralphie's dad working on the furnace. Cursing didn't help, but Asahi super-dry temporarily eased the suffering.

Buruzaemon said...

Ah, working remotely does present some obstacles if you are trying to share your pain with your cow-orkers...

But misery loves company, and I am happy to see that you can relate. I would recommend that you chase that Asahi Super Dry with a shot of single malt whiskey. At least, on shot...