The Secret History of Women in Coding Computer programming once had much better gender balance than it does today. What went wrong?

Imatge

Origi­nal arti­cle publis­hed in New York Times

By Clive Thomp­son

As a teena­ger in Mary­land in the 1950s, Mary Allen Wilkes had no plans to become a soft­ware pioneer — she drea­med of being a liti­ga­tor. One day in junior high in 1950, though, her geography teacher surpri­sed her with a comment: “Mary Allen, when you grow up, you should be a compu­ter program­mer!” Wilkes had no idea what a program­mer was; she wasn’t even sure what a compu­ter was. Rela­ti­vely few Ameri­cans were. The first digi­tal compu­ters had been built barely a decade earlier at univer­si­ties and in govern­ment labs.

By the time she was gradu­a­ting from Welles­ley College in 1959, she knew her legal ambi­ti­ons were out of reach. Her mentors all told her the same thing: Don’t even bother applying to law school. “They said: ‘Don’t do it. You may not get in. Or if you get in, you may not get out. And if you get out, you won’t get a job, ’ ” she recalls. If she lucked out and got hired, it wouldn’t be to argue cases in front of a judge. More likely, she would be a law libra­rian, a legal secre­tary, some­one proces­sing trusts and esta­tes.

But Wilkes remem­be­red her junior high school teacher’s sugges­tion. In college, she heard that compu­ters were suppo­sed to be the key to the future. She knew that the Massa­chu­setts Insti­tute of Tech­no­logy had a few of them. So on the day of her gradu­a­tion, she had her parents drive her over to M.I.T. and marched into the scho­ol’s employ­ment office. “Do you have any jobs for compu­ter program­mers?” she asked. They did, and they hired her.

It might seem strange now that they were happy to take on a random appli­cant with abso­lu­tely no expe­ri­ence in compu­ter program­ming. But in those days, almost nobody had any expe­ri­ence writing code. The disci­pline did not yet really exist; there were vanis­hingly few college cour­ses in it, and no majors. (Stan­ford, for exam­ple, didn’t create a compu­ter-science depart­ment until 1965.) So instead, insti­tu­ti­ons that needed program­mers just used apti­tude tests to evalu­ate appli­cants’ ability to think logi­cally. Wilkes happe­ned to have some inte­llec­tual prepa­ra­tion: As a philo­sophy major, she had studied symbo­lic logic, which can involve crea­ting argu­ments and infe­ren­ces by strin­ging toget­her and/or state­ments in a way that resem­bles coding.

 

Wilkes quickly became a program­ming whiz. She first worked on the IBM 704, which requi­red her to write in an abstruse “assembly language.” (A typi­cal command might be somet­hing like “LXA A, K, ” telling the compu­ter to take the number in Loca­tion A of its memory and load it into to the “Index Regis­ter” K.) Even getting the program into the IBM 704 was a labo­ri­ous affair. There were no keybo­ards or scre­ens; Wilkes had to write a program on paper and give it to a typist, who trans­la­ted each command into holes on a punch card. She would carry boxes of commands to an “opera­tor, ” who then fed a stack of such cards into a reader. The compu­ter execu­ted the program and produ­ced results, typed out on a prin­ter.

Often enough, Wilkes’s code didn’t produce the result she wanted. So she had to pore over her lines of code, trying to deduce her mistake, step­ping through each line in her head and envi­si­o­ning how the machine would execute it — turning her mind, as it were, into the compu­ter. Then she would rewrite the program. The capa­city of most compu­ters at the time was quite limi­ted; the IBM 704 could handle only about 4,000 “words” of code in its memory. A good program­mer was concise and elegant and never wasted a word. They were poets of bits. “It was like working logic puzz­les — big, compli­ca­ted logic puzz­les, ” Wilkes says. “I still have a very picky, precise mind, to a fault. I notice pictu­res that are croo­ked on the wall.”

What sort of person posses­ses that kind of menta­lity? Back then, it was assu­med to be women. They had alre­ady played a foun­da­ti­o­nal role in the prehis­tory of compu­ting: During World War II, women opera­ted some of the first compu­ta­ti­o­nal machi­nes used for code-brea­king at Blet­ch­ley Park in Britain. In the United States, by 1960, accor­ding to govern­ment statis­tics, more than one in four program­mers were women. At M.I.T.’s Lincoln Labs in the 1960s, where Wilkes worked, she recalls that most of those the govern­ment cate­go­ri­zed as “career program­mers” were female. It wasn’t high-status work — yet.

In 1961, Wilkes was assig­ned to a promi­nent new project, the crea­tion of the LINC. As one of the world’s first inter­ac­tive perso­nal compu­ters, it would be a breakth­rough device that could fit in a single office or lab. It would even have its own keybo­ard and screen, so it could be program­med more quickly, without awkward punch cards or prin­touts. The desig­ners, who knew they could make the hard­ware, needed Wilkes to help write the soft­ware that would let a user control the compu­ter in real time.

Editors’ Picks

‘A Pumping Cons­pi­racy’: Why Workers Smug­gled Breast Pumps Into Prison

He Commit­ted Murder. Then He Gradu­a­ted From an Elite Law School. Would You Hire Him as Your Attor­ney?

The 20 Best TV Dramas Since ‘The Sopra­nos’

Compu­ter opera­tors with an Eniac — the world’s first program­ma­ble gene­ral-purpose compu­ter.Credit­Cor­bis/Getty Images

Image

Compu­ter opera­tors with an Eniac — the world’s first program­ma­ble gene­ral-purpose compu­ter.Credit­Cor­bis/Getty Images

For two and a half years, she and a team toiled away at flow charts, ponde­ring how the circuitry func­ti­o­ned, how to let people commu­ni­cate with it. “We worked all these crazy hours; we ate all kinds of terri­ble food, ” she says. There was sexism, yes, espe­ci­ally in the dispa­rity between how men and women were paid and promo­ted, but Wilkes enjoyed the rela­tive comity that exis­ted among the men and women at Lincoln Labs, the sense of being among inte­llec­tual peers. “We were a bunch of nerds, ” Wilkes says dryly. “We were a bunch of geeks. We dres­sed like geeks. I was comple­tely accep­ted by the men in my group.” When they got an early prototype of the LINC working, it solved a fien­dish data-proces­sing problem for a biolo­gist, who was so exci­ted that he danced a happy jig around the machine.

 

In late 1964, after Wilkes retur­ned from trave­ling around the world for a year, she was asked to finish writing the LINC’s opera­ting system. But the lab had been relo­ca­ted to St. Louis, and she had no desire to move there. Instead, a LINC was ship­ped to her parents’ house in Balti­more. Looming in the front hall near the foot of the stairs, a tall cabi­net of whir­ring magne­tic tapes across from a refri­ge­ra­tor-size box full of circuitry, it was an early glimpse of a sci-fi future: Wilkes was one of the first people on the planet to have a perso­nal compu­ter in her home. (Her father, an Epis­co­pal clergy­man, was thri­lled. “He brag­ged about it, ” she says. “He would tell anybody who would listen, ‘I bet you don’t have a compu­ter in your living room.’ ”) Before long, LINC users around the world were using her code to program medi­cal analy­ses and even create a chat­bot that inter­vi­e­wed pati­ents about their symp­toms.

But even as Wilkes esta­blis­hed herself as a program­mer, she still craved a life as a lawyer. “I also really finally got to the point where I said, ‘I don’t think I want to do this for the rest of my life, ’ ” she says. Compu­ters were inte­llec­tu­ally stimu­la­ting but soci­ally isola­ting. In 1972, she applied and got in to Harvard Law School, and after gradu­a­ting, she spent the next four deca­des as a lawyer. “I abso­lu­tely loved it, ” she says.

Today Wilkes is reti­red and lives in Cambridge, Mass. White-haired at 81, she still has the precise manne­risms and the ready, beaming smile that can be seen in photos from the ’60s, when she posed, grin­ning, beside the LINC. She told me that she occa­si­o­nally gives talks to young students studying compu­ter science. But the industry they’re heading into is, asto­nis­hingly, less popu­la­ted with women — and by many accounts less welco­ming to them — than it was in Wilkes’s day. In 1960, when she star­ted working at M.I.T., the propor­tion of women in compu­ting and mathe­ma­ti­cal profes­si­ons (which are grou­ped toget­her in fede­ral govern­ment data) was 27 percent. It reached 35 percent in 1990. But, in the govern­ment’s publis­hed figu­res, that was the peak. The numbers fell after that, and by 2013, women were down to 26 percent — below their share in 1960.

When Wilkes talks to today’s young coders, they are often shoc­ked to learn that women were among the field’s earli­est, towe­ring inno­va­tors and once a common sight in corpo­rate America. “Their mouths are agape, ” Wilkes says. “They have abso­lu­tely no idea.”

[Why is it so hard to make a website for the govern­ment? Read about the woman who foun­ded Code For America.]

Almost 200 years ago, the first person to be what we would now call a coder was, in fact, a woman: Lady Ada Love­lace. As a young mathe­ma­ti­cian in England in 1833, she met Charles Babbage, an inven­tor who was strug­gling to design what he called the Analy­ti­cal Engine, which would be made of metal gears and able to execute if/then commands and store infor­ma­tion in memory. Enth­ra­lled, Love­lace gras­ped the enor­mous poten­tial of a device like this. A compu­ter that could modify its own instruc­ti­ons and memory could be far more than a rote calcu­la­tor, she reali­zed. To prove it, Love­lace wrote what is often regar­ded as the first compu­ter program in history, an algo­rithm with which the Analy­ti­cal Engine would calcu­late the Bernou­lli sequence of numbers. (She wasn’t shy about her accom­plish­ments: “That brain of mine is somet­hing more than merely mortal; as time will show, ” she once wrote.) But Babbage never mana­ged to build his compu­ter, and Love­lace, who died of cancer at 36, never saw her code execu­ted.

Sign up for The New York Times Maga­zine News­let­ter

The best of The New York Times Maga­zine deli­ve­red to your inbox every week, inclu­ding exclu­sive feature stories, photo­graphy, columns and more.

SIGN UP

When digi­tal compu­ters finally became a prac­ti­cal reality in the 1940s, women were again pione­ers in writing soft­ware for the machi­nes. At the time, men in the compu­ting industry regar­ded writing code as a secon­dary, less inter­es­ting task. The real glory lay in making the hard­ware. Soft­ware? “That term hadn’t yet been inven­ted, ” says Jenni­fer S. Light, a profes­sor at M.I.T. who studies the history of science and tech­no­logy.

 

An engra­ving of Ada Love­lace, the first compu­ter program­mer.CreditSSPL/Getty Images

Image

An engra­ving of Ada Love­lace, the first compu­ter program­mer.CreditSSPL/Getty Images

This dyna­mic was at work in the deve­lop­ment of the first program­ma­ble digi­tal compu­ter in the United States, the Elec­tro­nic Nume­ri­cal Inte­gra­tor and Compu­ter, or Eniac, during the 1940s. Funded by the mili­tary, the thing was a behe­moth, weig­hing more than 30 tons and inclu­ding 17,468 vacuum tubes. Merely getting it to work was seen as the heroic, manly engi­ne­e­ring feat. In contrast, program­ming it seemed menial, even secre­ta­rial. Women had long been employed in the scut work of doing calcu­la­ti­ons. In the years leading up to the Eniac, many compa­nies bought huge elec­tro­nic tabu­la­ting machi­nes — quite useful for tallying up payroll, say — from compa­nies like IBM; women frequently worked as the punch-card opera­tors for these over­grown calcu­la­tors. When the time came to hire tech­ni­ci­ans to write instruc­ti­ons for the Eniac, it made sense, to the men in charge, to pick an all-female team: Kath­leen McNulty, Jean JenningsBetty Snyder, Marlyn Wescoff, Fran­ces Bilas and Ruth Lich­ter­man. The men would figure out what they wanted Eniac to do; the women “program­med” it to execute the instruc­ti­ons.

“We could diag­nose trou­bles almost down to the indi­vi­dual vacuum tube, ” Jennings later told an inter­vi­e­wer for the IEEE Annals of the History of Compu­ting. Jennings, who grew up as the tomboy daugh­ter of low-income parents near a Missouri commu­nity of 104 people, studied math at college. “Since we knew both the appli­ca­tion and the machine, we lear­ned to diag­nose trou­bles as well as, if not better than, the engi­neer.”

The Eniac women were among the first coders to disco­ver that soft­ware never works right the first time — and that a program­mer’s main work, really, is to find and fix the bugs. Their inno­va­ti­ons inclu­ded some of soft­wa­re’s core concepts. Betty Snyder reali­zed that if you wanted to debug a program that wasn’t running correctly, it would help to have a “break point, ” a moment when you could stop a program midway through its run. To this day, break points are a key part of the debug­ging process.

In 1946, Eniac’s crea­tors wanted to show off the compu­ter to a group of leaders in science, tech­no­logy and the mili­tary. They asked Jennings and Snyder to write a program that calcu­la­ted missile trajec­to­ries. After weeks of intense effort, they and their team had a working program, except for one glitch: It was suppo­sed to stop when the missile landed, but for some reason it kept running. The night before the demo, Snyder suddenly intui­ted the problem. She went to work early the next day, flip­ped a single switch inside the Eniac and elimi­na­ted the bug. “Betty could do more logi­cal reaso­ning while she was asleep than most people can do awake, ” Jennings later said. Nonet­he­less, the women got little credit for their work. At that first offi­cial demons­tra­tion to show off Eniac, the male project mana­gers didn’t mention, much less intro­duce, the women.

After the war, as coding jobs spread from the mili­tary into the private sector, women remai­ned in the coding vanguard, doing some of the highest-profile work. The pione­e­ring program­mer Grace Hopper is frequently credi­ted with crea­ting the first “compi­ler, ” a program that lets users create program­ming langua­ges that more closely resem­ble regu­lar writ­ten words: A coder could thus write the English-like code, and the compi­ler would do the hard work of turning it into ones and zeros for the compu­ter. Hopper also deve­lo­ped the “Flow­ma­tic” language for nonte­ch­ni­cal busi­ness­pe­o­ple. Later, she advi­sed the team that crea­ted the Cobol language, which became widely used by corpo­ra­ti­ons. Anot­her program­mer from the team, Jean E. Sammet, conti­nued to be influ­en­tial in the langua­ge’s deve­lop­ment for deca­des. Fran Allen was so expert in opti­mi­zing Fortran, a popu­lar language for perfor­ming scien­ti­fic calcu­la­ti­ons, that she became the first female IBM fellow.

When the number of coding jobs explo­ded in the ’50s and ’60s as compa­nies began relying on soft­ware to process payrolls and crunch data, men had no special advan­tage in being hired. As Wilkes had disco­ve­red, employers simply looked for candi­da­tes who were logi­cal, good at math and meti­cu­lous. And in this respect, gender stere­oty­pes worked in women’s favor: Some execu­ti­ves argued that women’s tradi­ti­o­nal exper­tise at pains­ta­king acti­vi­ties like knit­ting and weaving mani­fes­ted preci­sely this mind-set. (The 1968 book “Your Career in Compu­ters” stated that people who like “cooking from a cook­book” make good program­mers.)

The field rewar­ded apti­tude: Appli­cants were often given a test (typi­cally one invol­ving pattern recog­ni­tion), hired if they passed it and trai­ned on the job, a process that made the field espe­ci­ally recep­tive to neophy­tes. “Know Nothing About Compu­ters? Then We’ll Teach You (and Pay You While Doing So), ” one British ad promi­sed in 1965. In a 1957 recrui­ting pitch in the United States, IBM’s brochure titled “My Fair Ladies” speci­fi­cally encou­ra­ged women to apply for coding jobs.

 

Such was the hunger for program­ming talent that a young black woman named Arlene Gwen­dolyn Lee could become one of the early female program­mers in Canada, despite the open discri­mi­na­tion of the time. Lee was half of a bira­cial couple to whom no one would rent, so she needed money to buy a house. Accor­ding to her son, who has descri­bed his mother’s expe­ri­ence in a blog post, Lee showed up at a firm after seeing its ad for data proces­sing and systems analy­tics jobs in a Toronto news­pa­per some­time in the early 1960s. Lee persu­a­ded the employers, who were all white, to let her take the coding apti­tude test. When she placed in the 99th percen­tile, the super­vi­sors grilled her with ques­ti­ons before hiring her. “I had it easy, ” she later told her son. “The compu­ter didn’t care that I was a woman or that I was black. Most women had it much harder.”

 

Elsie Shutt lear­ned to code during her college summers while working for the mili­tary at the Aber­deen Proving Ground, an Army faci­lity in Mary­land. In 1953, while taking time off from gradu­ate school, she was hired to code for Rayt­heon, where the program­mer work force “was about 50 percent men and 50 percent women, ” she told Janet Abbate, a Virgi­nia Tech histo­rian and author of the 2012 book “Reco­ding Gender.” “And it really amazed me that these men were program­mers, because I thought it was women’s work!”

When Shutt had a child in 1957, state law requi­red her to leave her job; the ’50s and ’60s may have been welco­ming to full-time female coders, but firms were unwi­lling to offer part-time work, even to superb coders. So Shutt foun­ded Compu­ta­ti­ons Inc., a consul­tancy that produ­ced code for corpo­ra­ti­ons. She hired stay-at-home mothers as part-time employees; if they didn’t alre­ady know how to code, she trai­ned them. They cared for their kids during the day, then coded at night, renting time on local compu­ters. “What it turned into was a feeling of mission, ” Shutt told Abbate, “in provi­ding work for women who were talen­ted and did good work and couldn’t get part-time jobs.” Busi­ness Week called the Compu­ta­ti­ons work force the “preg­nant program­mers” in a 1963 arti­cle illus­tra­ted with a picture of a baby in a bassi­net in a home hall­way, with the mother in the back­ground, hard at work writing soft­ware. (The arti­cle’s title: “Mixing Math and Mother­hood.”)

By 1967, there were so many female program­mers that Cosmo­po­li­tan maga­zine publis­hed an arti­cle about “The Compu­ter Girls, ” accom­pa­nied by pictu­res of beehi­ved women at work on compu­ters that evoked the control deck of the U.S.S. Enter­prise. The story noted that women could make $20,000 a year doing this work (or more than $150,000 in today’s money). It was the rare white-collar occu­pa­tion in which women could thrive. Nearly every other highly trai­ned profes­si­o­nal field admit­ted few women; even women with math degrees had limi­ted opti­ons: teaching high school math or doing rote calcu­la­ti­ons at insu­rance firms.

“Women back then would basi­cally go, ‘Well, if I don’t do program­ming, what else will I do?’ ” Janet Abbate says. “The situ­a­tion was very grim for women’s oppor­tu­ni­ties.”

[The Yoda of Sili­con Valley]

If we want to pinpo­int a moment when women began to be forced out of program­ming, we can look at one year: 1984. A decade earlier, a study reve­a­led that the numbers of men and women who expres­sed an inter­est in coding as a career were equal. Men were more likely to enroll in compu­ter-science programs, but women’s parti­ci­pa­tion rose stea­dily and rapidly through the late ’70s until, by the 1983–84 acade­mic year, 37.1 percent of all students gradu­a­ting with degrees in compu­ter and infor­ma­tion scien­ces were women. In only one decade, their parti­ci­pa­tion rate more than doubled.

But then things went into reverse. From 1984 onward, the percen­tage drop­ped; by the time 2010 rolled around, it had been cut in half. Only 17.6 percent of the students gradu­a­ting from compu­ter-science and infor­ma­tion-science programs were women.

 

One reason for this verti­gi­nous decline has to do with a change in how and when kids lear­ned to program. The advent of perso­nal compu­ters in the late ’70s and early ’80s remade the pool of students who pursued compu­ter-science degrees. Before then, pretty much every student who showed up at college had never touched a compu­ter or even been in the room with one. Compu­ters were rare and expen­sive devi­ces, avai­la­ble for the most part only in rese­arch labs or corpo­rate settings. Nearly all students were on equal footing, in other words, and new to program­ming.

Once the first gene­ra­tion of perso­nal compu­ters, like the Commo­dore 64 or the TRS-80, found their way into homes, teena­gers were able to play around with them, slowly lear­ning the major concepts of program­ming in their spare time. By the mid-’80s, some college fresh­men were showing up for their first class alre­ady profi­ci­ent as program­mers. They were remar­kably well prepa­red for and perhaps even a little jaded about what Compu­ter Science 101 might bring. As it turned out, these students were mostly men, as two acade­mics disco­ve­red when they looked into the reasons women’s enroll­ment was so low.

 

Keypunch opera­tors at IBM in Stoc­kholm in the 1930s.Credi­tIBM

Image

Keypunch opera­tors at IBM in Stoc­kholm in the 1930s.Credi­tIBM

One rese­ar­cher was Allan Fisher, then the asso­ci­ate dean of the compu­ter-science school at Carne­gie Mellon Univer­sity. The school esta­blis­hed an under­gra­du­ate program in compu­ter science in 1988, and after a few years of opera­tion, Fisher noti­ced that the propor­tion of women in the major was consis­tently below 10 percent. In 1994, he hired Jane Margo­lis, a social scien­tist who is now a senior rese­ar­cher in the U.C.L.A. School of Educa­tion and Infor­ma­tion Studies, to figure out why. Over four years, from 1995 to 1999, she and her colle­a­gues inter­vi­e­wed and trac­ked roughly 100 under­gra­du­a­tes, male and female, in Carne­gie Mellon’s compu­ter-science depart­ment; she and Fisher later publis­hed the findings in their 2002 book “Unloc­king the Club­house: Women in Compu­ting.”

What Margo­lis disco­ve­red was that the first-year students arri­ving at Carne­gie Mellon with subs­tan­tial expe­ri­ence were almost all male. They had recei­ved much more expo­sure to compu­ters than girls had; for exam­ple, boys were more than twice as likely to have been given one as a gift by their parents. And if parents bought a compu­ter for the family, they most often put it in a son’s room, not a daugh­ter’s. Sons also tended to have what amoun­ted to an “inter­ns­hip” rela­ti­ons­hip with fathers, working through Basic-language manu­als with them, recei­ving encou­ra­ge­ment from them; the same wasn’t true for daugh­ters. “That was a very impor­tant part of our findings, ” Margo­lis says. Nearly every female student in compu­ter science at Carne­gie Mellon told Margo­lis that her father had worked with her brot­her — “and they had to fight their way through to get some atten­tion.”

Their mothers were typi­cally less enga­ged with compu­ters in the home, they told her. Girls, even the nerdy ones, picked up these cues and seemed to dial back their enthu­si­asm accor­dingly. These were pretty fami­liar roles for boys and girls, histo­ri­cally: Boys were chee­red on for playing with cons­truc­tion sets and elec­tro­nics kits, while girls were stee­red toward dolls and toy kitchens. It wasn’t terribly surpri­sing to Margo­lis that a new tech­no­logy would follow the same pattern as it became widely accep­ted.

At school, girls got much the same message: Compu­ters were for boys. Geeky boys who formed compu­ter clubs, at least in part to escape the torments of jock culture, often wound up, whet­her inten­ti­o­nally or not, repro­du­cing the same exclu­si­o­nary beha­vior. (These groups snub­bed not only girls but also black and Latino boys.) Such male cliques crea­ted “a kind of peer support network, ” in Fisher’s words.

This helped explain why Carne­gie Mellon’s first-year clas­ses were starkly divi­ded between the siza­ble number of men who were alre­ady confi­dent in basic program­ming concepts and the women who were frequently complete neophy­tes. A cultu­ral schism had emer­ged. The women star­ted doub­ting their ability. How would they ever catch up?

 

What Margo­lis heard from students — and from faculty members, too — was that there was a sense in the class­room that if you hadn’t alre­ady been coding obses­si­vely for years, you didn’t belong. The “real program­mer” was the one who “had a compu­ter-screen tan from being in front of the moni­tor all the time, ” as Margo­lis puts it. “The idea was, you just have to love being with a compu­ter all the time, and if you don’t do it 24/7, you’re not a ‘real’ program­mer.” The truth is, many of the men them­sel­ves didn’t fit this mono­ma­ni­a­cal stere­otype. But there was a double stan­dard: While it was O.K. for the men to want to engage in vari­ous other pursuits, women who expres­sed the same wish felt judged for not being “hard core” enough. By the second year, many of these women, besi­e­ged by doubts, began drop­ping out of the program. (The same was true for the few black and Latino students who also arri­ved on campus without teenage program­ming expe­ri­ence.)

A simi­lar pattern took hold at many other campu­ses. Patri­cia Ordóñez, a first-year student at Johns Hopkins Univer­sity in 1985, enro­lled in an Intro­duc­tion to Mini­com­pu­ters course. She had been a math whiz in high school but had little expe­ri­ence in coding; when she raised her hand in class at college to ask a ques­tion, many of the other students who had spent their teenage years program­ming — and the profes­sor — made her feel singled out. “I remem­ber one day he looked at me and said, ‘You should alre­ady know this by now, ’ ” she told me. “I thought, I’m never going to succeed.” She swit­ched majors as a result.

Yet a student’s deci­sion to stick with or quit the subject did not seem to be corre­la­ted with coding talent. Many of the women who drop­ped out were getting perfectly good grades, Margo­lis lear­ned. Indeed, some who left had been top students. And the women who did persist and made it to the third year of their program had by then gene­rally caught up to the teenage obses­si­ves. The degre­e’s cour­se­work was, in other words, a leve­ling force. Lear­ning Basic as a teenage hobby might lead to lots of fun and useful skills, but the pace of lear­ning at college was so much more intense that by the end of the degree, everyone even­tu­ally wound up gradu­a­ting at roughly the same levels of program­ming mastery.

 

An E.R.A./Univac 1103 compu­ter in the 1950s.Credit­Hum Images/Alamy

Image

An E.R.A./Univac 1103 compu­ter in the 1950s.Credit­Hum Images/Alamy

“It turned out that having prior expe­ri­ence is not a great predic­tor, even of acade­mic success, ” Fisher says. Ordóñez’s later expe­ri­ence illus­tra­tes exac­tly this: After chan­ging majors at Johns Hopkins, she later took night clas­ses in coding and even­tu­ally got a Ph.D. in compu­ter science in her 30s; today, she’s a profes­sor at the Univer­sity of Puerto Rico Río Piedras, speci­a­li­zing in data science.

By the ’80s, the early pione­e­ring work done by female program­mers had mostly been forgot­ten. In contrast, Holly­wood was putting out preci­sely the oppo­site image: Compu­ters were a male domain. In hit movies like “Revenge of the Nerds, ” “Weird Science, ” “Tron, ” “WarGa­mes” and others, the compu­ter nerds were nearly always young white men. Video games, a signi­fi­cant gate­way acti­vity that led to an inter­est in compu­ters, were pitched far more often at boys, as rese­arch in 1985 by Sara Kies­ler, a profes­sor at Carne­gie Mellon, found. “In the culture, it became somet­hing that guys do and are good at, ” says Kies­ler, who is also a program mana­ger at the Nati­o­nal Science Foun­da­tion. “There were all kinds of things signa­ling that if you don’t have the right genes, you’re not welcome.”

A 1983 study invol­ving M.I.T. students produ­ced equally bleak accounts. Women who raised their hands in class were often igno­red by profes­sors and talked over by other students. They would be told they weren’t aggres­sive enough; if they challen­ged other students or contra­dic­ted them, they heard comments like “You sure are bitchy today — must be your period.” Beha­vior in some rese­arch groups “some­ti­mes appro­xi­ma­tes that of the locker room, ” the report conclu­ded, with men openly rating how “cute” their female students were. (“Gee, I don’t think it’s fair that the only two girls in the group are in the same office, ” one said. “We should share.”) Male students mused about women’s medi­o­crity: “I really don’t think the woman students around here are as good as the men, ” one said.

By then, as program­ming enjoyed its first burst of cultu­ral atten­tion, so many students were racing to enroll in compu­ter science that univer­si­ties ran into a supply problem: They didn’t have enough profes­sors to teach everyone. Some added hurd­les, cour­ses that students had to pass before they could be accep­ted into the compu­ter-science major. Punis­hing work­lo­ads and clas­ses that cove­red the mate­rial at a light­ning pace weeded out those who didn’t get it imme­di­a­tely. All this foste­red an envi­ron­ment in which the students mostly likely to get through were those who had alre­ady been expo­sed to coding — young men, mostly. “Every time the field has insti­tu­ted these filters on the front end, that’s had the effect of redu­cing the parti­ci­pa­tion of women in parti­cu­lar, ” says Eric S. Roberts, a long­time profes­sor of compu­ter science, now at Reed College, who first studied this problem and called it the “capa­city crisis.”

 

When compu­ter-science programs began to expand again in the mid-’90s, coding’s culture was set. Most of the inco­ming students were men. The inter­est among women never reco­ve­red to the levels reached in the late ’70s and early ’80s. And the women who did show up were often isola­ted. In a room of 20 students, perhaps five or even fewer might be women.

In 1991, Ellen Sper­tus, now a compu­ter scien­tist at Mills College, publis­hed a report on women’s expe­ri­en­ces in program­ming clas­ses. She cata­lo­ged a lands­cape popu­la­ted by men who snic­ke­red about the presu­med infe­ri­o­rity of women and by profes­sors who told female students that they were “far too pretty” to be studying elec­tri­cal engi­ne­e­ring; when some men at Carne­gie Mellon were asked to stop using pictu­res of naked women as desk­top wall­pa­per on their compu­ters, they angrily complai­ned that it was censors­hip of the sort prac­ti­ced by “the Nazis or the Ayato­llah Khomeini.”

As program­ming was shut­ting its doors to women in acade­mia, a simi­lar trans­for­ma­tion was taking place in corpo­rate America. The emer­gence of what would be called “culture fit” was chan­ging the who, and the why, of the hiring process. Mana­gers began picking coders less on the basis of apti­tude and more on how well they fit a perso­na­lity type: the acer­bic, aloof male nerd.

The shift actu­ally began far earlier, back in the late ’60s, when mana­gers recog­ni­zed that male coders shared a growing tendency to be anti­so­cial isola­tes, lording their arcane tech­ni­cal exper­tise over that of their bosses. Program­mers were “often egocen­tric, slightly neuro­tic, ” as Richard Bran­don, a well-known compu­ter-industry analyst, put it in an address at a 1968 confe­rence, adding that “the inci­dence of beards, sandals and other symp­toms of rugged indi­vi­du­a­lism or noncon­for­mity are notably grea­ter among this demo­grap­hic.”

 

In addi­tion to testing for logi­cal thin­king, as in Mary Allen Wilkes’s day, compa­nies began using perso­na­lity tests to select speci­fi­cally forthese sorts of caus­tic loner quali­ties. “These became very power­ful narra­ti­ves, ” says Nathan Ensmen­ger, a profes­sor of infor­ma­tics at Indi­ana Univer­sity, who has studied this tran­si­tion. The hunt for that perso­na­lity type cut women out. Mana­gers might shrug and accept a man who was unkempt, unsha­ven and surly, but they wouldn’t tole­rate a women who beha­ved the same way. Coding incre­a­singly requi­red late nights, but mana­gers clai­med that it was too unsafe to have women working into the wee hours, so they forbid them to stay late with the men.

At the same time, the old hierar­chy of hard­ware and soft­ware became inver­ted. Soft­ware was beco­ming a criti­cal, and lucra­tive, sector of corpo­rate America. Employers incre­a­singly hired program­mers whom they could envi­sion one day ascen­ding to key mana­ge­rial roles in program­ming. And few compa­nies were willing to put a woman in charge of men. “They wanted people who were more alig­ned with manage­ment, ” says Marie Hicks, a histo­rian at the Illi­nois Insti­tute of Tech­no­logy. “One of the big take­a­ways is that tech­ni­cal skill does not equate to success.”

By the 1990s and 2000s, the pursuit of “culture fit” was in full force, parti­cu­larly at start-ups, which involve a rela­ti­vely small number of people typi­cally confi­ned to tight quar­ters for long hours. Foun­ders looked to hire people who were soci­ally and cultu­rally simi­lar to them.

 

“It’s all this loosey-goosey ‘cul­tu­re’ thing, ” says Sue Gard­ner, former head of the Wiki­me­dia Foun­da­tion, the nonpro­fit that hosts Wiki­pe­dia and other sites. After her stint there, Gard­ner deci­ded to study why so few women were employed as coders. In 2014, she surveyed more than 1,400 women in the field and conduc­ted sit-down inter­vi­ews with scores more. It became clear to her that the occu­pa­ti­on’s take­o­ver by men in the ’90s had turned into a self-perpe­tu­a­ting cycle. Because almost everyone in charge was a white or Asian man, that was the model for whom to hire; mana­gers recog­ni­zed talent only when it walked and talked as they did. For exam­ple, many compa­nies have relied on white­bo­ard challen­ges when hiring a coder — a pros­pec­tive employee is asked to write code, often a sorting algo­rithm, on a white­bo­ard while the employers watch. This sort of thing bears almost no resem­blance to the work coders actu­ally do in their jobs. But white­bo­ard ques­ti­ons resem­ble class­room work at Ivy League insti­tu­ti­ons. It feels fami­liar to the men doing the hiring, many of whom are only a few years out of college. “What I came to realize, ” Gard­ner says, “is that it’s not that women are exclu­ded. It’s that prac­ti­cally everyone is exclu­ded if you’re not a young white or Asian man who’s single.”

One coder, Step­ha­nie Hurl­burt, was a stere­oty­pi­cal math nerd who had deep expe­ri­ence working on grap­hics soft­ware. “I love C++, the low-level stuff, ” she told me, refer­ring to a complex language known for allo­wing program­mers to write very fast-running code, useful in grap­hics. Hurl­burt worked for a series of firms this decade, inclu­ding Unity (which makes popu­lar soft­ware for desig­ning games), and then for Face­book on its Oculus Rift VR head­set, grin­ding away for long hours in the run-up to the rele­ase of its first demo. Hurl­burt became accus­to­med to shrug­ging off nega­tive atten­tion and crude sexism. She heard, inclu­ding from many autho­rity figu­res she admi­red, that women weren’t wired for math. While working as a coder, if she expres­sed igno­rance of any concept, no matter how trivial, male colle­a­gues would dispa­rage her. “I thought you were at a higher math level, ” one snif­fed.

In 2016, Hurl­burt and a friend, Rich Geldreich, foun­ded a start-up called Bino­mial, where they crea­ted soft­ware that helps compress the size of “textu­res” in grap­hics-heavy soft­ware. Being self-employed, she figu­red, would mean not having to deal with belitt­ling bosses. But when she and Geldreich went to sell their product, some custo­mers assu­med that she was just the marke­ting person. “I don’t know how you got this product off the ground when you only have one program­mer!” she recalls one client telling Geldreich.

In 2014, an infor­mal analy­sis by a tech entre­pre­neur and former acade­mic named Kieran Snyder of 248 corpo­rate perfor­mance revi­ews for tech engi­ne­ers deter­mi­ned that women were consi­de­rably more likely than men to receive revi­ews with nega­tive feed­back; men were far more likely to get revi­ews that had only cons­truc­tive feed­back, with no nega­tive mate­rial. In a 2016 expe­ri­ment conduc­ted by the tech recrui­ting firm Speak With a Geek, 5,000 résu­més with iden­ti­cal infor­ma­tion were submit­ted to firms. When iden­tifying details were remo­ved from the résu­més, 54 percent of the women recei­ved inter­view offers; when gende­red names and other biograp­hi­cal infor­ma­tion were given, only 5 percent of them did.

Lurking bene­ath some of this sexist atmosp­here is the phan­tasm of soci­o­bi­o­logy. As this line of thin­king goes, women are less suited to coding than men because biology better endows men with the quali­ties neces­sary to excel at program­ming. Many women who work in soft­ware face this line of reaso­ning all the time. Cate Huston, a soft­ware engi­neer at Google from 2011 to 2014, heard it from colle­a­gues there when they ponde­red why such a low percen­tage of the company’s program­mers were women. Peers would argue that Google hired only the best — that if women weren’t being hired, it was because they didn’t have enough innate logic or grit, she recalls.

 

In the summer of 2017, a Google employee named James Damore sugges­ted in an inter­nal email that seve­ral quali­ties more commonly found in women — inclu­ding higher rates of anxi­ety — explai­ned why they weren’t thri­ving in a compe­ti­tive world of coding; he cited the cogni­tive neuros­ci­en­tist Simon Baron-Cohen, who theo­ri­zes that the male brain is more likely to be “syste­mi­zing, ” compa­red with women’s “empat­hi­zing” brains. Google fired Damore, saying it could not employ some­one who would argue that his female colle­a­gues were inhe­rently unsui­ted to the job. But on Google’s inter­nal boards, other male employees backed up Damore, agre­eing with his analy­sis. The assump­tion that the makeup of the coding work force reflects a pure meri­to­cracy runs deep among many Sili­con Valley men; for them, soci­o­bi­o­logy offers a way to explain things, parti­cu­larly for the type who prefers to beli­eve that sexism in the work­place is not a big deal, or even doubts it really exists.

But if biology were the reason so few women are in coding, it would be impos­si­ble to explain why women were so promi­nent in the early years of Ameri­can program­ming, when the work could be, if anyt­hing, far harder than today’s program­ming. It was an unchar­ted new field, in which you had to do math in binary and hexa­de­ci­mal formats, and there were no help­ful inter­net forums, no Google to query, for assis­tance with your bug. It was just your brain in a jar, solving hellish problems.

 

If biology limi­ted women’s ability to code, then the ratio of women to men in program­ming ought to be simi­lar in other coun­tries. It isn’t. In India, roughly 40 percent of the students studying compu­ter science and rela­ted fields are women. This is despite even grea­ter barri­ers to beco­ming a female coder there; India has such rigid gender roles that female college students often have an 8 p.m. curfew, meaning they can’t work late in the compu­ter lab, as the social scien­tist Roli Varma lear­ned when she studied them in 2015. The Indian women had one big cultu­ral advan­tage over their Ameri­can peers, though: They were far more likely to be encou­ra­ged by their parents to go into the field, Varma says. What’s more, the women regar­ded coding as a safer job because it kept them indo­ors, lesse­ning their expo­sure to street-level sexual harass­ment. It was, in other words, consi­de­red normal in India that women would code. The picture has been simi­lar in Malay­sia, where in 2001 — preci­sely when the share of Ameri­can women in compu­ter science had slid into a trough — women repre­sen­ted 52 percent of the under­gra­du­ate compu­ter-science majors and 39 percent of the Ph.D. candi­da­tes at the Univer­sity of Malaya in Kuala Lumpur.

Today, when midca­reer women decide that Sili­con Valley’s culture is unli­kely to change, many simply leave the industry. When Sue Gard­ner surveyed those 1,400 women in 2014, they told her the same story: In the early years, as junior coders, they looked past the ambi­ent sexism they encoun­te­red. They loved program­ming and were ambi­ti­ous and exci­ted by their jobs. But over time, Gard­ner says, “they get ground down.” As they rose in the ranks, they found few, if any, mentors. Nearly two-thirds either expe­ri­en­ced or witnes­sed harass­ment, she read in “The Athena Factor” (a 2008 study of women in tech); in Gard­ner’s survey, one-third repor­ted that their mana­gers were more friendly toward and gave more support to their male co-workers. It’s often assu­med that having chil­dren is the moment when women are side­li­ned in tech care­ers, as in many others, but Gard­ner disco­ve­red that wasn’t often the brea­king point for these women. They grew discou­ra­ged seeing men with no better or even lesser quali­fi­ca­ti­ons get supe­rior oppor­tu­ni­ties and treat­ment.

“What surpri­sed me was that they felt, ‘I did all that work!’ They were angry,” Gard­ner says. “It wasn’t like they needed a helping hand or needed a little extra coaching. They were mad. They were not leaving because they couldn’t hack it. They were leaving because they were skilled profes­si­o­nals who had skills that were broadly in demand in the market­place, and they had other opti­ons. So they’re like, ‘[exple­tive] it — I’ll go somew­here where I’m seen as valu­a­ble.’ ”

The result is an industry that is dras­ti­cally more male than it was deca­des ago, and far more so than the work­place at large. In 2018, accor­ding to data from the Bureau of Labor Statis­tics, about 26 percent of the workers in “compu­ter and mathe­ma­ti­cal occu­pa­ti­ons” were women. The percen­ta­ges for people of color are simi­larly low: Black employees were 8.4 percent, Lati­nos 7.5 percent. (The Census Bure­au’s Ameri­can Commu­nity Survey put black coders at only 4.7 percent in 2016.) In the more rare­fied world of the top Sili­con Valley tech firms, the numbers are even more austere: A 2017 analy­sis by Recode, a news site that covers the tech­no­logy industry, reve­a­led that 20 percent of Google’s tech­ni­cal employees were women, while only 1 percent were black and 3 percent were Hispa­nic. Face­book was nearly iden­ti­cal; the numbers at Twit­ter were 15 percent, 2 percent and 4 percent, respec­ti­vely.

The rever­sal has been profound. In the early days of coding, women floc­ked to program­ming because it offe­red more oppor­tu­nity and reward for merit, more than fields like law. Now soft­ware has the closed door.

In the late 1990s, Allan Fisher deci­ded that Carne­gie Mellon would try to address the male-female imba­lance in its compu­ter-science program. Promp­ted by Jane Margo­lis’s findings, Fisher and his colle­a­gues insti­tu­ted seve­ral chan­ges. One was the crea­tion of clas­ses that grou­ped students by expe­ri­ence: The kids who had been coding since youth would start on one track; the newco­mers to coding would have a slightly diffe­rent curri­cu­lum, allo­wing them more time to catch up. Carne­gie Mellon also offe­red extra tuto­ring to all students, which was parti­cu­larly useful for the novice coders. If Fisher could get them to stay through the first and second years, he knew, they would catch up to their peers.

 

Compo­nents from four of the earli­est elec­tro­nic compu­ters, held by Patsy Boyce Simmers, Gail Taylor, Millie Beck and Norma Stec, employees at the United States Army’s Ballis­tics Rese­arch Labo­ra­tory.CreditS­ci­ence Source

Image

Compo­nents from four of the earli­est elec­tro­nic compu­ters, held by Patsy Boyce Simmers, Gail Taylor, Millie Beck and Norma Stec, employees at the United States Army’s Ballis­tics Rese­arch Labo­ra­tory.CreditS­ci­ence Source

They also modi­fied the cour­ses in order to show how code has impacts in the real world, so a new student’s view of program­ming wouldn’t just be an endless vista of algo­rithms discon­nec­ted from any prac­ti­cal use. Fisher wanted students to glimpse, earlier on, what it was like to make soft­ware that works its way into people’s lives. Back in the ’90s, before social media and even before the inter­net had gone mains­tream, the influ­ence that code could have on daily life wasn’t so easy to see.

 

Faculty members, too, adop­ted a diffe­rent pers­pec­tive. For years some had tacitly endor­sed the idea that the students who came in alre­ady knowing code were born to it. Carne­gie Mellon “rewar­ded the obses­sive hacker, ” Fisher told me. But the faculty now knew that their assump­ti­ons weren’t true; they had been confu­sing previ­ous expe­ri­ence with raw apti­tude. They still wanted to encou­rage those obses­sive teenage coders, but they had come to unders­tand that the neophy­tes were just as likely to bloom rapidly into remar­ka­ble talents and deser­ved as much support. “We had to broa­den how faculty sees what a success­ful student looks like, ” he says. The admis­si­ons process was adjus­ted, too; it no longer gave as much prefe­rence to students who had been teenage coders.

No single policy chan­ged things. “There’s really a virtu­ous cycle, ” Fisher says. “If you make the program accom­mo­date people with less expe­ri­ence, then people with less expe­ri­ence come in.” Faculty members became more used to seeing how green coders evolve into accom­plis­hed ones, and they lear­ned how to teach that type.

Carne­gie Mellon’s efforts were remar­kably success­ful. Only a few years after these chan­ges, the percen­tage of women ente­ring its compu­ter-science program boomed, rising to 42 percent from 7 percent; gradu­a­tion rates for women rose to nearly match those of the men. The school vaul­ted over the nati­o­nal average. Other scho­ols concer­ned about the low number of female students began using appro­a­ches simi­lar to Fisher’s. In 2006, Harvey Mudd College tinke­red with its Intro­duc­tion to Compu­ter Science course, crea­ting a track speci­fi­cally for novi­ces, and rebran­ded it as Crea­tive Problem Solving in Science and Engi­ne­e­ring Using Compu­ta­ti­o­nal Appro­a­ches — which, the insti­tu­ti­on’s presi­dent, Maria Klawe, told me, “is actu­ally a better descrip­tion of what you’re actu­ally doing when you’re coding.” By 2018, 54 percent of Harvey Mudd’s gradu­a­tes who majo­red in compu­ter science were women.

A broa­der cultu­ral shift has accom­pa­nied the scho­ols’ efforts. In the last few years, women’s inter­est in coding has begun rapidly rising throug­hout the United States. In 2012, the percen­tage of female under­gra­du­a­tes who plan to major in compu­ter science began to rise at rates not seen for 35 years, since the decline in the mid-’80s, accor­ding to rese­arch by Linda Sax, an educa­tion profes­sor at U.C.L.A. There has also been a boom­let of groups and orga­ni­za­ti­ons trai­ning and encou­ra­ging under­re­pre­sen­ted cohorts to enter the field, like Black Girls Code and Code Newbie. Coding has come to be seen, in purely econo­mic terms, as a bastion of well-paying and enga­ging work.

In an age when Insta­gram and Snap­chat and iPho­nes are part of the warp and weft of life’s daily fabric, poten­tial coders worry less that the job will be isola­ted, anti­so­cial and distant from reality. “Women who see them­sel­ves as crea­tive or artis­tic are more likely to pursue compu­ter science today than in the past, ” says Sax, who has pored over deca­des of demo­grap­hic data about the students in STEM fields. They’re still less likely to go into coding than other fields, but program­ming is incre­a­singly on their hori­zon. This shift is abet­ted by the fact that it’s much easier to learn program­ming without getting a full degree, through free online coding scho­ols, rela­ti­vely chea­per “boot camps” or even meetup groups for newco­mers — oppor­tu­ni­ties that have emer­ged only in the last decade.

Chan­ging the culture at scho­ols is one thing. Most female vete­rans of code I’ve spoken to say that what is harder is shif­ting the culture of the industry at large, parti­cu­larly the refle­xive sexism and racism still deeply ingrai­ned in Sili­con Valley. Some, like Sue Gard­ner, some­ti­mes wonder if it’s even ethi­cal for her to encou­rage young women to go into tech. She fears they’ll pour out of compu­ter-science programs in incre­a­sing numbers, arrive at their first coding job exci­ted and thrive early on, but then gradu­ally get beaten down by industry. “The truth is, we can attract more and diffe­rent people into the field, but they’re just going to hit that wall in midca­reer, unless we change how things happen higher up, ” she says.

On a spring weekend in 2017, more than 700 coders and desig­ners were given 24 hours to dream up and create a new product at a hackat­hon in New York hosted by Tech­Crunch, a news site devo­ted to tech­no­logy and Sili­con Valley. At lunch­time on Sunday, the teams presen­ted their crea­ti­ons to a panel of industry judges, in a bliz­zard of fran­tic eleva­tor pitches. There was Insta­gram­mie, a robot system that would auto­ma­ti­cally recog­nize the mood of an elderly rela­tive or a person with limi­ted mobi­lity; there was Waste Not, an app to reduce food waste. Most of the contes­tants were coders who worked at local high-tech firms or compu­ter-science students at nearby univer­si­ties.

 

Despite women’s histo­ri­cal role in the vanguard of compu­ter progra­ming, some female vete­rans of code wonder if it’s even ethi­cal to encou­rage young women to go into tech because of the refle­xive sexism in the current culture of Sili­con Valley.Credi­tA­pic/Getty Images

Image

Despite women’s histo­ri­cal role in the vanguard of compu­ter progra­ming, some female vete­rans of code wonder if it’s even ethi­cal to encou­rage young women to go into tech because of the refle­xive sexism in the current culture of Sili­con Valley.Credi­tA­pic/Getty Images

The winning team, though, was a trio of high school girls from New Jersey: Sowmya Pata­pati, Akshaya Dinesh and Amulya Balak­rish­nan. In only 24 hours, they crea­ted reVIVE, a virtual-reality app that tests chil­dren for signs of A.D.H.D. After the students were handed their winnings onstage — a trophy-size check for $5,000 — they flop­ped into chairs in a nearby room to recu­pe­rate. They had been coding almost nons­top since noon the day before and were bleary with exhaus­tion.

“Lots of caffeine, ” Balak­rish­nan, 17, said, laug­hing. She wore a blue T-shirt that read “WHO HACK THE WORLD? GIRLS.” The girls told me that they had impres­sed even them­sel­ves by how much they accom­plis­hed in 24 hours. “Our app really does stre­am­line the process of detec­ting A.D.H.D., ” said Dinesh, who was also 17. “It usually takes six to nine months to diag­nose, and thou­sands of dollars! We could do it digi­tally in a much faster way!”

They all became inter­es­ted in coding in high school, each of them with strong encou­ra­ge­ment from immi­grant parents. Balak­rish­nan’s parents worked in soft­ware and medi­cine; Dinesh’s parents came to the United States from India in 2000 and worked in infor­ma­tion tech­no­logy. Pata­pati immi­gra­ted from India as an infant with her young mother, who never went to college, and her father, an infor­ma­tion-tech worker who was the first in his rural family to go to college.

Drawn to coding in high school, the young hackers got used to being the lone girl nerds at school, as Dinesh told me.

“I tried so hard to get other girls inter­es­ted in compu­ter science, and it was like, the inter­est levels were just so low, ” she says. “When I walked into my first hackat­hon, it was the most inti­mi­da­ting thing ever. I looked at a room of 80 kids: Five were girls, and I was probably the youn­gest person there.” But she kept on compe­ting in 25 more hackat­hons, and her confi­dence grew. To break the isola­tion and meet more girls in coding, she atten­ded events by orga­ni­za­ti­ons like #BuiltBy­Girls, which is where, a few days previ­ously, she had met Pata­pati and Balak­rish­nan and where they deci­ded to team up. To attend Tech­Crunch, Pata­pati, who was 16, and Balak­rish­nan skip­ped a junior prom and a friend’s birth­day party. “Who needs a party when you can go to a hackat­hon?” Pata­pati said.

Winning Tech­Crunch as a group of young women of color brought extra atten­tion, not all of it posi­tive. “I’ve gotten a lot of comments like: ‘Oh, you won the hackat­hon because you’re a girl! You’re a diver­sity pick, ” Balak­rish­nan said. After the prize was announ­ced online, she reca­lled later, “there were quite a few engi­ne­ers who commen­ted, ‘Oh, it was a girl pick; obvi­ously that’s why they won.’ ”

Nearly two years later, Balak­rish­nan was taking a gap year to create a heart-moni­to­ring product she inven­ted, and she was in the running for $100,000 to deve­lop it. She was applying to college to study compu­ter science and, in her spare time, compe­ting in a beauty page­ant, inspi­red by Miss USA 2017, Kara McCu­llough, who was a nuclear scien­tist. “I reali­zed that I could use page­antry as a plat­form to show more girls that they could embrace their femi­ni­nity and be invol­ved in a very tech­ni­cal, male-domi­na­ted field, ” she says. Dinesh, in her final year at high school, had star­ted an all-female hackat­hon that now takes place annu­ally in New York. (“The vibe was defi­ni­tely very diffe­rent, ” she says, more focu­sed on trai­ning newco­mers.)

 

Pata­pati and Dinesh enro­lled at Stan­ford last fall to study compu­ter science; both are inter­es­ted deeply in A.I. They’ve noti­ced the subtle tensi­ons for women in the coding clas­ses. Pata­pati, who foun­ded a Women in A.I. group with an Apple tech lead, has watched as male colle­a­gues ignore her raised hand in group discus­si­ons or repeat somet­hing she just said as if it were their idea. “I think some­ti­mes it’s just a bias that people don’t even recog­nize that they have, ” she says. “That’s been really upset­ting.”

Dinesh says “there’s abso­lu­tely a diffe­rence in confi­dence levels” between the male and female newco­mers. The Stan­ford curri­cu­lum is so intense that even the rela­tive vete­rans like her are scram­bling: When we spoke recently, she had just spent “three all-nigh­ters in a row” on a single project, for which students had to engi­neer a “print” command from scratch. At 18, she has few illu­si­ons about the road ahead. When she went to a block­chain confe­rence, it was a sea of “middle-aged white and Asian men, ” she says. “I’m never going to one again, ” she adds with a laugh.

“My dream is to work on auto­no­mous driving at Tesla or Waymo or some company like that. Or if I see that there’s somet­hing missing, maybe I’ll start my own company.” She has begun moving in that direc­tion alre­ady, having met one venture capi­ta­list via #BuiltBy­Girls. “So now I know I can start reaching out to her, and I can start reaching out to other people that she might know, ” she says.

Will she look around, 20 years from now, to see that soft­ware has retur­ned to its roots, with women everyw­here? “I’m not really sure what will happen, ” she admits. “But I do think it is abso­lu­tely on the upward climb.”

 

Correc­tion: Feb. 14, 2019

An earlier version of this arti­cle misi­den­ti­fied the insti­tu­tion Ellen Sper­tus was affi­li­a­ted with when she publis­hed a 1991 report on women’s expe­ri­en­ces in program­ming clas­ses. Sper­tus was at M.I.T. when she publis­hed the report, not Mills College, where she is currently a profes­sor.

Correc­tion: Feb. 14, 2019

An earlier version of this arti­cle miss­ta­ted Akshaya Dinesh’s current age. She is 18, not 19.

Clive Thomp­son is a contri­bu­ting writer for the maga­zine and Smith­so­nian and a colum­nist for Wired. 

This arti­cle is adap­ted from “Coders: The Making of a New Tribe and the Rema­king of the World, ” to be publis­hed by Penguin Press in March.

A version of this arti­cle appe­ars in print on Feb. 17, 2019, on Page 38 of the Sunday Maga­zine with the head­line: The Secret History of Women In Coding. Order Reprints | Today’s Paper | Subs­cribe