Slashdot Log In
Do Women Write Better Code?
Posted by
CmdrTaco
on Mon Jun 16, 2008 08:30 AM
from the better-than-me-at-least dept.
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. "
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
Loading... please wait.
Remember: Sexism's Only Alright If It Favors Women (Score:5, Insightful)
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.
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.
Re:Remember: Sexism's Only Alright If It Favors Wo (Score:5, Funny)
/cry
Parent
Re:Remember: Sexism's Only Alright If It Favors Wo (Score:5, Insightful)
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.
Parent
Re:Remember: Sexism's Only Alright If It Favors Wo (Score:5, Insightful)
Parent
well, hire a bunch of women (Score:5, Funny)
yeah yeah... (Score:5, Funny)
Re:yeah yeah... (Score:5, Funny)
Parent
Women aren't good programmers (Score:5, Funny)
Re:Women aren't good programmers (Score:5, Funny)
Parent
Wow, What A Revelation. (Score:5, Funny)
"Men and women think differently."
This is such shocking news. Unbelievable.
Simplistic? True? (Score:5, Insightful)
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...
Since the whole article is based on anecdotes... (Score:5, Insightful)
A male colleague, OTOH, likes to write code in style such as
for (unsigned int i=0;ij;i = i + 1)
{
There, I've the counterpoint for the article with my own biased view!
I write code like that guy (Score:5, Insightful)
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.
Parent
Not my experience (Score:5, Interesting)
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.
Bad programmers methinks (Score:5, Insightful)
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)
Poor observation skills (Score:5, Insightful)
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.
Oh come on, Slashdot! (Score:5, Funny)
Why do you need to explain what code is? This is news for nerds, not news for my mother. Give us some credit please.
Beware of Female Programmers (Score:5, Funny)
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)
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)
Documentation (Score:5, Funny)
Or women don't document at all and just expect the men to know what they are thinking.
Actual comments from woman-code: (Score:5, Funny)
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)
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.
Re:Do women write better code? (Score:5, Funny)
Parent