Slashdot Mirror


Do Women Write Better Code?

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. "

34 of 847 comments (clear)

  1. Remember: Sexism's Only Alright If It Favors Women by eldavojohn · · Score: 5, Insightful

    "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.
    --
    My work here is dung.
  2. well, hire a bunch of women by Anonymous Coward · · Score: 5, Funny

    and see how harmonic they all work together

  3. yeah yeah... by mactard · · Score: 5, Funny

    Men's code is sexist and demeaning whereas woman's code will marry you for the divorce settlement.

    1. Re:yeah yeah... by Xiaran · · Score: 5, Funny

      If it was difficult to write it should be difficult to understand.

  4. Women aren't good programmers by larry+bagina · · Score: 5, Funny

    they freak out everytime they miss a period.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

    1. Re:Women aren't good programmers by Anonymous Coward · · Score: 5, Funny

      Believe me, guys freak out when women miss a period also.

    2. Re:Women aren't good programmers by larry+bagina · · Score: 5, Funny

      eh, just control-C to abort. If that doesn't work, try a kill -9 months.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

  5. Wow, What A Revelation. by blcamp · · Score: 5, Funny


    "Men and women think differently."

    This is such shocking news. Unbelievable.

    --
    The problem with socialism is that they always run out of other people's money. - Margaret Thatcher
  6. Re:Remember: Sexism's Only Alright If It Favors Wo by TitusC3v5 · · Score: 5, Funny

    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

    --
    And the masses cried out, "09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0!"
  7. Not my experience by Hyppy · · Score: 5, Interesting

    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.

  8. Poor observation skills by HappyHead · · Score: 5, Insightful

    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.

  9. McGrattan's Blog by Tsar · · Score: 5, Informative

    Hey look, you can read Miss McGrattan's own blog entry about the interview and perhaps provide some intelligent, constructive comments. Remember not to obfuscate!

    1. Re:McGrattan's Blog by RobBebop · · Score: 5, Insightful

      Thanks for the link. When she refers to gender as "women" and "boys" it really makes it clear where her prejudices are.

      As a young man, I have worked hard to mentally apply the words "women" and "ladies" in place of "girls" during recent years because I have found that many females have a reasonable personal preference not to be called "girl" ("chick" is also a bad choice).

      In any case, seeing "boys" applied within an "anti-man" argument is a refreshing reminder that women also suffer the negative effects of sexism and bigotry.

      --
      Support the 30 Hour Work Week!!!
    2. Re:McGrattan's Blog by NotBornYesterday · · Score: 5, Insightful
      From TFA:

      McGrattan boasts that 70% to 80% of the time, she can look at a chunk of computer code and tell if it was written by a man or a woman. From McGratten's blog:

      We had a great chat, and the one question I had to think long and hard about was how code written by a woman would differ from that written by a man, and whether or not I'd be able to identify the gender of the author of a piece of code. This is nothing I'd ever thought about before, and given our strict coding standards at Ingres, our code is fairly androgynous. The Financial Times article that McGratten's blog links to also quotes the 80% figure.

      How does "nothing I'd ever thought about before" and "fairly androgynous" code add up to "at least 80 per cent of the time"?

      If you publish shit based on psychic code-reading ability and made-up, pulled-out-of-your-unthinking-ass subjective factoids, you need to publish it as what it is - fiction.
      --
      I prefer rogues to imbeciles because they sometimes take a rest.
  10. Documentation by Ogive17 · · Score: 5, Funny

    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.

    --
    "Action without philosophy is a lethal weapon; philosophy without action is worthless."
  11. Actual comments from woman-code: by BForrester · · Score: 5, Funny

    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.

  12. Re:Remember: Sexism's Only Alright If It Favors Wo by Atraxen · · Score: 5, Insightful

    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').

    --
    Be careful of your thoughts; they could become words at any minute...
  13. Re:Do women write better code? by Anonymous Coward · · Score: 5, Funny

    I haven't seen a woman (live one that is). Nor sunlight.

  14. I don't think so. by DougReed · · Score: 5, Insightful

    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.

  15. i don't know if women write better code by circletimessquare · · Score: 5, Insightful

    but i do know that wildly speculative sweeping generalizations provides lots of fodder for utterly useless watercooler chit chat

    congrats slashdot for picking a topic everyone feels entitled to comment on and absolutely no one actually says anything useful on

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
  16. Re:Remember: Sexism's Only Alright If It Favors Wo by ShieldW0lf · · Score: 5, Funny

    Does this mean you need to spend half an hour telling the database how pretty it is and how much you love it no matter what it says before it will give you a straight answer?

    --
    -1 Uncomfortable Truth
  17. Re:Remember: Sexism's Only Alright If It Favors Wo by Rogerborg · · Score: 5, Funny

    Also: I hear that Asians write really efficient code because of their little fingers. And black guys? They could write great code, if only Whitey would stop keeping them down.

    --
    If you were blocking sigs, you wouldn't have to read this.
  18. Re:Remember: Sexism's Only Alright If It Favors Wo by ranulf · · Score: 5, Insightful

    This article told me I code like a woman.

    Actually, this article is almost completely fallacious... Let's look at the facts quoted:

    McGrattan boasts that 70% to 80% of the time, she can look at a chunk of computer code and tell if it was written by a man or a woman.

    ...at Ingres because only about 20% of the engineers are women, McGrattan says. (Most of them are in jobs involving quality assurance or adapting the product to a new locale, she says, and not the "heavy lifting" of writing code.)

    So, basically, she'd get a higher score if she guessed "man" every time than if she tries to be clever. Clearly, then, she does think some men's code looks like it's been written by a woman, which invalidates to point of the article.

  19. Re:Do women write better code? by ThePengwin · · Score: 5, Funny

    live one that is

    That kinda scared me a little.....

  20. Re:Remember: Sexism's Only Alright If It Favors Wo by sheepofblue · · Score: 5, Insightful

    Women and Men DO think different. The men are evil and women rock tone of this article however is pathetic as are her conclusions.

    However you could leverage the fact that men and women think different to gain fault tolerance. If you have two independent programmers do the same work, with the same requirements they will frequently arrive at different solutions. As most know this can be leveraged by comparing the output of both solutions to verify the solution is proper. If one solution was done by a male and the other by a female the probability of difference should go up due to the difference in thought patterns, I would think.

    That is a real chance of benefit versus the male hating nonsense she spewed.

  21. Re:Do women write better code? by wtfispcloadletter · · Score: 5, Interesting

    I've seen 1, ever, a DB programmer, she was supposedly good. Heard of a few others through the grapevine, but only heard of them because how utterly useless and cruddy their code was. Just like I've heard of a few male programmers that I've never met. The phrase "complete rewrite" kept coming up from my associates after they (females and males) were canned.

    Oh, wait, I have met a few others. They were no longer coding, they somehow had left the field and had a change of careers (working minimum wage jobs through a contract agency...) Actually, no different than after the big dotcom bubble pop and I met several (male) "network admins" who were (and still are, 7? years later) driving delivery truck. Seems they can't find a job in their field of choice again. I think the companies were looking for any excuse to let them go as these guys were from some very large manufacturing companies that really weren't effected by the dotpop.

    Seriously, how many women, percentage wise compared to men, are in the field? How can they come up with some stat that says women are better programmers if you've got (pulling number out of air) 1 woman to every 1000 men in the field? How about a statement like "a percentage of women who become programmers and are successful at it (as in my experience a lot are not, but that's no different than men), tend to be better programmers than men"

  22. Re:Remember: Sexism's Only Alright If It Favors Wo by dosius · · Score: 5, Funny

    ORLY now. I'm still officially a man (much to my chagrin), and I've always used landmarks to give directions.

    -uso.

    --
    What you hear in the ear, preach from the rooftop Matthew 10.27b
  23. Re:Of course by gsslay · · Score: 5, Insightful

    I particularly liked the "There's a big need to fix testosterone-fueled code at Ingres because only about 20% of the engineers are women"

    Cos we all know that testosterone is bad, and women engineers are all better because, well, they're not mad things driven by their hormones, like silly men.

    Basically the woman is a fool with an agenda (women into computing) so is constructing a theory to fit the purpose using crass gender stereotypes. There are good coders who document and comment clearly. There are good coders who don't, but should. There are rotten coders who both do and don't document and comment clearly. But any attempt to assign any of the former attributes to gender specifics is pathetic, and more than a little worrying for someone who, I presume, is responsible for employing people under present gender discrimination laws. If I worked for her I would more than a little annoyed at being patronised and my coding style & skills being categorized by gender.

  24. Re:Do women write better code? by paeanblack · · Score: 5, Insightful

    I've seen 1, ever, a DB programmer, she was supposedly good.

    Inept male programmers have an easier time hiding in the crowd. Inept women programmers can't.

    Because of this culling effect, the women that are still around are, on average, more capable.
    Industries dominated by women have a similar effect. The males end up being better because they need to overcome the inherent prejudice to get the same performance review.

  25. Re:Do women write better code? by Jerajdai · · Score: 5, Insightful

    I know your post is a joke, but on a serious note ...anybody with a computer science background knows at least one female programmer. Matter of fact, she's the first programmer ever -- Lady Lovelace.

  26. Re:Remember: Sexism's Only Alright If It Favors Wo by bzipitidoo · · Score: 5, Insightful

    The biggest problem with "brains work differently" is that "differently" is too easily interpreted as "better". People simplify this down to a one dimensional score of IQ. No matter how you rig the scores, one group is going to come out looking "better". Then you get things like how former Harvard President Summers' speech was interpreted. And you get denial for purely political reasons, insistence that everyone is equal because otherwise it would be unfair.

    Which is the better chess piece, the knight or the bishop? That's not a good question. It presumes that there's a clear advantage to one or the other when actually it's situational. The knight is regarded as better for closed positions, while the bishop is better for open positions. Nonetheless, chess experts couldn't resist concluding that perhaps the bishop is overall slightly better, and have gone as far as giving computers a blanket preference in that direction. Perhaps the bishop is the better piece for the computer's typical style of massive tactical computation paired with ever more sophisticated but insufficient heuristic rules to compensate for zero understanding of the overall strategic considerations of a chess position. (For instance, computers have been known to continue to grind out move after move in positions where the outcome is already known, positions such as king and knight vs king which is a draw no matter what the players do, because unless specifically programmed to do so, computers do not assess positions from a view of what is possible.) What I wonder is if programming is a situation in which men's or women's style of intelligence seems to work better, or is programming a more varied situation than that?

    --
    Intellectual Property is a monopolistic, selfish, and defective concept. It is "tyranny over the mind of man"
  27. Re:Do women write better code? by Dopeskills · · Score: 5, Funny

    live one that is

    That kinda scared me a little.....

    Apparently Hans Reiser is now posting as AC.
  28. Re:Do women write better code? by Bloke+down+the+pub · · Score: 5, Funny

    You've clearly never used COBOL.

    --
    It's true I tell you, feller at work's next door neighbour read it in the paper.
  29. Re:Do women write better code? by cjb658 · · Score: 5, Funny

    Sorry ladies, but I work with 3 women coders, and I have to redo their stuff all the time! So much freakin' copy and paste junk code, classes that are 10k+ lines long, learn object oriented programming already! So basically, they hand it to you and tell you to take out the garbage?