Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Do Women Write Better Code?

Posted by CmdrTaco on Mon Jun 16, 2008 08:30 AM
from the better-than-me-at-least dept.
JCWDenton writes "The senior vice-president of engineering for computer-database company Ingres-and one of Silicon Valley's highest-ranking female programmers-insists that men and women write code differently. Women are more touchy-feely and considerate of those who will use the code later, she says. They'll intersperse their code ... with helpful comments and directions, explaining why they wrote the lines the way they did and exactly how they did it. The code becomes a type of 'roadmap' for others who might want to alter it or add to it later, says McGrattan, a native of Ireland who has been with Ingres since 1992. Men, on the other hand, have no such pretenses. Often, 'they try to show how clever they are by writing very cryptic code,' she tells the Business Technology Blog. 'They try to obfuscate things in the code,' and don't leave clear directions for people using it later. "
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • "They try to obfuscate things in the code, and don't leave clear directions for people using it later."
    Excuse me? "Try to?" Like, it's on purpose?

    I've seen all genders write obfuscated code--but it worked. And every single time it was because we were under the gun for a deadline or there was simply no other way to do it. It's preposterous to even try to sound like you have empirical data supporting this blanket assessment.

    There's a big need to fix testosterone-fueled code at Ingres ...
    Even in my state of extreme naivete about what is going on at Ingres, I would suggest you first dump efforts into your supporting teams to help your developers out ... like your systems engineers, test teams, database teams, etc. What McGrattan is accusing men of is just bad documentation. Anyone can suffer from this and anyone can do it expertly.

    I could combat her anecdotal subjective statements (probably describing herself) with my own anecdotes or go on a rant about how many of the great programmers are men (like Donald Knuth and his 'literate programming') but what's the point? Men can be just as meticulous as women can at providing good documentation and women can be just as sloppy.

    It's good to have a healthy mix of diversity and I wish that programmers were 50/50 split on gender (trust me, I really really do) but it's not because women are better than men at coding. Prime example of American sexism in one of the few forms it exists today.
    • This article told me I code like a woman. I knew playing all those female characters in RPGs would come back to haunt me.

      /cry

      • Bah! I can think of three female programmers immediately who I've worked with closely enough to comment on their code. Two of them were C++ programmers and I don't remember their code being anything atypical in terms of comments, though one wrote very elegant code. The third works primarily in Java and somehow manages to turn out hideously unreadable code. Conversely, I've seen numerous men who program in a variety of ways, readable and otherwise.

        It's now well established that the human brain builds negative stereotypes more easily than positive ones and that people see what they are expecting and apply a double standard. This person sees what she wants to see.
    • by Atraxen (790188) on Monday June 16 2008, @09:02AM (#23809245)
      Not only that, but even if the observation (that women write better documented code than men) is true, that would only be a correlation. The gender itself is not causation - if you want to learn something meaningful, find out why the gender is correlated (e.g. women at that company are given more reasonable deadlines, men feel less secure in their positions so they don't care about helping others untangle the 'spaghetti').
  • by Anonymous Coward on Monday June 16 2008, @08:32AM (#23808857)
    and see how harmonic they all work together
  • by mactard (1223412) on Monday June 16 2008, @08:32AM (#23808861)
    Men's code is sexist and demeaning whereas woman's code will marry you for the divorce settlement.
  • by larry bagina (561269) on Monday June 16 2008, @08:33AM (#23808871) Journal
    they freak out everytime they miss a period.
  • by blcamp (211756) on Monday June 16 2008, @08:34AM (#23808875) Homepage

    "Men and women think differently."

    This is such shocking news. Unbelievable.

  • Simplistic? True? (Score:5, Insightful)

    by neapolitan (1100101) * on Monday June 16 2008, @08:34AM (#23808883)
    Inflammatory short article to "sex things up" (pun intended); surprising for the WSJ (or maybe not.) Written by a Rebecca Buckman, quoting Emma McGrattan at database company Ingres.

    Any such broad classifications such as this should be taken with a *lot* of salt.

    That being said, the article reminded me of a large digital systems design project that I had back in college, writing assembly for a 6502 processor in a device we made. My lab partner was a girl (probably only 10% of the class was female) who really, really thought differently than me in a way. It was weird -- some of the things I thought were impossible or not worth doing she would code in 10 hours; and the reverse was true. It was pretty much pure synergy (forgive the cheesy phrase) and we were extremely productive and got along well.

    However, to reduce anything like this to gender differences is almost nonsensical. I could have been good lab partners with any number of people that thought differently than me, male or female. Personality is complex, not binary. I know many girls that code beautifully, and many more that can not code at all. This article is kind of interesting cocktail conversation, but nothing more IMHO...
  • by Zarhan (415465) on Monday June 16 2008, @08:35AM (#23808885)
    My friends include a woman who writes 100-line SQL statements embedded in a perl-script. You need a magic decoder ring just to see what's there.

    A male colleague, OTOH, likes to write code in style such as

    for (unsigned int i=0;ij;i = i + 1) // Loop counts from i to j, with increments of one
        { .... } ...and no, his job does not include teaching basics of programming.

    There, I've the counterpoint for the article with my own biased view!
    • by wiredog (43288) on Monday June 16 2008, @08:41AM (#23808957) Journal
      Partly because the comments start out as the design, to which I then add code.

      I also comment obsessively because I want to be able to come back to the code a year later and know, quickly, what I did and why I did it.

      Many years ago I was porting someone else's C code from 16 bit to 32 bit and came across "//Why did I do this?" at the top of a couple hundred lines of uncommented code that had multiple embedded while anf for loops, with a pow() and a couple of sizeof()'s in there. I had to print it out and trace it by hand to figure out what he'd done, and why. Took awhile.

      Too many comments can be ignored, too few can give you heartburn.

  • Not my experience (Score:5, Interesting)

    by Hyppy (74366) on Monday June 16 2008, @08:41AM (#23808949)
    I know the plural of "anecdote" is not "data", but in my experiences this is far from true. I have found female coders in my jobs to be downright malevolent in their coding. All women I have worked with that write any sort of code obfuscate the hell out of it, document absolutely nothing, and will barely explain how to even use their product. If everything is not run "their way", then it seems like armageddon.

    Case in point. We have a coder who wrote an application for our office. Because of the fact that she refused to use any variable for the Program Files folder (hard coded as "c:\Program Files\") and she insisted that all workstations need a D: partition (to hold a 100kb support file), we had to rebuild 4 servers.

    Say what you will about women coders being "touchy feely." I won't fall for it, any more than the NOW propoganda that all women are natural caring mothers, even the coked out alcoholics.
  • by tomalpha (746163) * on Monday June 16 2008, @08:42AM (#23808959)

    "They try to obfuscate things in the code"

    Forget a male/female issue. I think she needs to hire better programmers period. Anyone in a professional code shop that's deliberately trying to write obfuscated code shouldn't be there and she's not doing her job properly if she's not firing them or getting them into remedial classes of some kind.

  • Of course (Score:5, Insightful)

    by pthor1231 (885423) on Monday June 16 2008, @08:43AM (#23808971)
    If someone wrote an article that was the opposite of this, from a "man's point of view" it would be extremely sexist, and the publisher, writer, and anyone quoted in the article would burn in the ninth layer of hell for being such a terrible person.
  • by HappyHead (11389) on Monday June 16 2008, @08:44AM (#23808977)
    This sounds like a severe case of deciding on a problem, and then picking out observations to support it. Let's say you have 1000 coders, and 1/10 of your coders (100 of them) write poorly documented code. Now we'll also consider the gender-split - if 1/10 of the coder population is female, and the statistical 1/10 of the coders writing poorly documented code applies to them as well - this means you'll have 10 female coders writing poor documentation, and 90 male coders writing poor documentation. WOW! NINE TIMES as many male coders who can't document code properly, CLEARLY that means that men can't document code, right? Right?

    The same sort of thing applied here at the University I teach at - a certain ethnic minority had a very bad reputation as producing cheaters in Comp.Sci. So for a few years, I carefully recorded every instance of cheating, and kept track of the ethnic background of the people getting caught. You know what? The only reason more people of that background were getting caught is because they represented 85% of the population in the department - the overall percentage of them that were cheating was actually LOWER than others.

    Perhaps this McGrattan person should concentrate more on fixing the problems than on blaming them on some group she doesn't like.
  • by borizz (1023175) on Monday June 16 2008, @08:48AM (#23809021)
    -those strings of instructions that result in nifty applications and programs-

    Why do you need to explain what code is? This is news for nerds, not news for my mother. Give us some credit please.
  • by Idimmu Xul (204345) on Monday June 16 2008, @08:51AM (#23809079) Homepage
    Now that I've lived to see this day,
    These are the things I must but say.

    Die a bachelor, if your options are few,
    Never ever love a female programmer,
    they'll make a program out of you.

    Don't laugh it away, mine has been an object lesson,
    They find syntax errors, even in a romantic expression.

    Alas! They search logic in love, where there is none,
    Your heart may skip a beat and they just hit return.

    You are in for trouble if you persist,
    You'll just be a pointer in her long linked list.

    --
    Free Playstation 3, XBox 360 and Nintendo Wii [free-toys.co.uk]
  • Gender differences (Score:5, Interesting)

    by Sobrique (543255) on Monday June 16 2008, @08:56AM (#23809147) Homepage
    Women and men do tend to think differently.

    Not worse, nor better really, just ... different

    So yes, I can see women writing 'better' code, but I still think that's more likely to be a matter of training and discipline, as much as anything else. Or perhaps the 'female geek' effect - in a word where you'll be faced with massive prejudice and pressure, the 'female techy' is typically (and yes, I realise this is a broad generalisation) even more hardcore than male counterparts - simply because she's there because she _really_ wants to, and has had to face a lot of uphill struggle to get there. This seems to hold true in petrolhead circles too (see, I can do car analogies too) - the few 'girl racers' I've met, have extremely extreme car mods, and rigs, because they're competing against everyone else _and_ the gender stereotype.

  • McGrattan's Blog (Score:5, Informative)

    by Tsar (536185) on Monday June 16 2008, @08:59AM (#23809185) Homepage Journal
    Hey look, you can read Miss McGrattan's own blog entry [ingres.com] about the interview and perhaps provide some intelligent, constructive comments. Remember not to obfuscate!
  • by Ogive17 (691899) on Monday June 16 2008, @08:59AM (#23809187)
    We all know that even if a woman *appears* to document her code well that what is written isn't what she really means!

    Or women don't document at all and just expect the men to know what they are thinking.
  • by BForrester (946915) on Monday June 16 2008, @09:00AM (#23809209)

    They'll intersperse their code-those strings of instructions that result in nifty applications and programs-with helpful comments and directions.

    If women code anything like they act in real life, then you'd get a lot of helpful comments like this:

    /*If you don't why this function isn't returning your expected result, then hell if I'm going to tell you.

  • I don't think so. (Score:5, Insightful)

    by DougReed (102865) on Monday June 16 2008, @09:04AM (#23809277)
    One of the better programmers I ever knew was a woman, and also one of the worst. The better one didn't even indent her 'if' statements, much less add comments until I shouted at her and made her review something she had written a few months earlier. The other one, wrote more comments than code... Like she thought she could justify the fact that it didn't work by explaining what it was supposed to do.
    Pretty much kills that theory in my book. Men and women often think differently, and even different programmers of the same sex think differently. There are a lot of generalizations one can make about women and men in the world, and argue religiously about whether it is environment or instinct... Somehow I don't think programming style is one of them.