Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Programming IT Technology

Do Women Write Better Code? 847

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. "
This discussion has been archived. No new comments can be posted.

Do Women Write Better Code?

Comments Filter:
  • 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 Anonymous Coward on Monday June 16, 2008 @09:18AM (#23809457)

    and see how harmonic they all work together
    and see how harmoniously they all work together

    - there fixed it for you

  • Re:Not my experience (Score:1, Informative)

    by Anonymous Coward on Monday June 16, 2008 @09:19AM (#23809465)
    you REBUILT 4 servers for lack of a D drive? Uhm.... "subst D: C:\d_root" ? (granted you may have to juggle drive letters if D is taken by an optical drive like it often is, but still, no biggie...)
  • Even if true (Score:4, Informative)

    by dmsuperman ( 1033704 ) on Monday June 16, 2008 @09:20AM (#23809479)
    Even if this statement is true, which I'm certainly not saying it is, in my experience women are also far more likely to clash with each other. We used to have a single woman programmer in our development department, and everything went smooth. She would make her points, most of the men would usually gang up on her and explain the opposite, it'd be one big fun-fest. About 20 minutes later, a major breakthrough would be achieved where both parties are happy.

    Another woman works here now. IF they finish arguing in an hour, it's not because they've come to a conclusion, it's because their throats are sore. They still can't even decide on some simple coding standards that the rest of us have already just been sort of using.

    Women together generally makes for a bad experience.

    These are just things I've noted, nothing sexist about it.
  • by Anonymous Coward on Monday June 16, 2008 @09:22AM (#23809527)

    >// Loop counts from i to j, with increments of one
    >for (unsigned int i=0;ij;i = i + 1)

    This loop starts at zero and keeps incrementing by one as long as the variable ij is non-zero. Your male colleague is an idiot.
    there probably was a < between the ij which was probably removed by the html encoding or something. just a guess
  • by YeeHaW_Jelte ( 451855 ) on Monday June 16, 2008 @09:29AM (#23809609) Homepage
    .. haven't _ever_ worked with a woman programmer in my 10+ year career.

    That's a bad thing.

    However, compensating by ascribing generic traits to gender (tidyness, empathy, etc) is not going to help, and IMHO this is exactly what this VP does.

    I'm glad I don't work for her. She seems quite sexist.
  • by peter303 ( 12292 ) on Monday June 16, 2008 @10:29AM (#23810427)
    Up to 1960s or so. Military and some businesses would hire rooms of "computers", people working with mechanical calculators and graph paper. The autobiography "Surely you are joking Mr Feynman" has a segment about this. Some of these same women carried over to early vacuum-tube computers. Grace Hopper, inventor of the first widely used compiler, was of this generation.

    At one of my early summer jobs in a large corporation there was a gender split between "scientists and engineers" and "programmers". The guys did write code on large "coding sheets" of paper. But the females programmed keypunched the coding sheets, submitted the job decks and collected the printouts, and the guys would analyze the printouts. You were lucky to get one or two turn-arounds a day. The new people had did their own programming on teletypes of terminals (inverted 1974) in school, so declined programming assistants. Some theold guys NEVER touched a keyboard in their careers. They were either promoted into management or laid off during the late 20th century corporate restructurings.

    So early programming acquired the "taint" of effeminity and being "trade" taught in vocation school. That taint delayed computer science from becoming as degree offereing at places like MIT, Stanford, and Harvard, some untilt he 1980s. I attended all three of those schools and remember the faculty debates about this. Computer scientists hid out in other departments, typically math and electrical engineering. I guess it was when you started seeing coding superstars like Don Bricklin and Bill Gates (yes Bill wrote a legendary BASIC compiler OFF-LINE that worked within a day of finally getting the hardware) that commercial computer science became more acceptable.
  • by locofungus ( 179280 ) on Monday June 16, 2008 @10:33AM (#23810479)
    IMO Clarity is important but it's not the most important thing when writing code.

    1. Correctness. If the code doesn't work (as it was supposed to have been designed to do) then it's wrong. It doesn't matter how beautiful it is. I've worked with people who have provided a library plus API for some functionality and I've been unable to get it to work EVER. They've claimed that they've tested it. I've been unable to find any case that works. In the end I was forced to rewrite it from scratch. (I've yet to receive any beautiful code that fails like this - unless you count pretty boxes for comments and correctly indented as beautiful)

    2. Robustness. I'm not talking about ability to handle unexpected input here - that comes under correctness. I'm talking about if someone needs to make a change in the future to support some new requirements, how robust is the code to a small change leaving (most of) the old functionality still working correctly. Many many years ago I remember working on some code (DOS code to drive hardware over serial port) that had some timing constraints (of the order of 1/100s) but nothing exceptionally difficult to achieve even in those days. The code mostly worked (although it failed intermittently) but was so sensitive to changes that moving a bit of functionality out into a subroutine would affect the timing enough to cause it to fail most of the time. In the end, the only solution was to rewrite from scratch.

    3. Clarity. Once the other two are fulfilled then clarity is important. But most of the time it's pretty hard to fulfill both 1 and 2 without also giving 3. Mostly 3 becomes alerting people to weird quirks in the code that have been done for a reason but aren't necessarily obvious at first glance. Comments are dangerous because they can be wrong even if the code is correct and robust. The very best code is correct, robust and doesn't need comments at all. Comments can break 2 - a small change to the code can silently break the comment. If the comment is at a high enough level then comments can sometimes be robust against small changes to the code. And some things are impossible to do in a small compact piece of code - then you need a small compact comment to give you the overview. Sometimes low level comments are required in code because requirements have changed so variable or function names no longer make sense in the new context. Of course, in an ideal world, we'd go and fix all those names everywhere.

    Tim.
  • by SirLurksAlot ( 1169039 ) on Monday June 16, 2008 @11:42AM (#23811417)

    I've always held Grace Hopper [wikipedia.org] in high regard myself. She was involved in the development of the first compiler for COBOL, as well as the language itself. She also pushed for standards in computing, and is at least partially responsible for the term "bug" in software. On top of all that she was a Rear Admiral in the Navy. What more could you want in a woman? She was truly one of the greatest female geeks in history.

  • by nuzak ( 959558 ) on Monday June 16, 2008 @12:34PM (#23812157) Journal
    > and is at least partially responsible for the term "bug" in software

    No she is not. The term goes all the way back to Shakespeare, and was in common use in Edison's time. The fact that she even made such lasting mention of the real bug stuck in the relay was because everyone was already likely to get the joke.
  • by balleyne ( 1224652 ) on Tuesday June 17, 2008 @03:07AM (#23819735) Homepage

    Inept male programmers have an easier time hiding in the crowd. Inept women programmers can't.
    There is an xkcd comic [xkcd.com] for everything in life.
  • by drolli ( 522659 ) on Tuesday June 17, 2008 @10:16AM (#23822853) Journal
    Yes. The social selection, at least in Europe is stronger for women which means that they have a stronger selection. Only the really interested ones will take a Job in programming. This means they will, in average, be better programmers. (you read correctly - not other, just better)

Anyone can make an omelet with eggs. The trick is to make one with none.

Working...