Co-founder of Code.org, who taught himself to code at 10 on a computer with no games, while a war went on outside
Who Is Hadi Partovi?
Hadi Partovi is an Iranian American tech entrepreneur and investor. He grew up in Tehran, Iran, and moved to the United States when he was about 12. In 2013 he and his twin brother, Ali, started Code.org, a nonprofit that helps schools teach computer science. Its Hour of Code has reached more than 100 million students, and Hadi still leads Code.org full-time as its CEO.
Giant Footsteps
Birth
Hadi Partovi and his identical twin brother, Ali, were born in Tehran, Iran, in 1972. Their father, Firouz Partovi, was a physicist. He was a founding professor and head of the physics department at Sharif University of Technology in Tehran. Their mother was a computer scientist.
Age 2: A Few Years in Boston
When the twins were 2, the family moved to Boston, in the United States, for a few years. Their mother studied at Boston University, and their father did research at MIT. The boys learned English there.
Age 5: The Kindergarten Mix-Up
The family went back to Tehran just before the Iranian Revolution. In kindergarten, Hadi and Ali had forgotten their Farsi, Iran's main language. They were "the only Iranians in the class who couldn't speak Farsi," Hadi remembered.
Age 7: Revolution and War
For readers under 12:
When Hadi was 7, a revolution changed Iran's government. Soon after, a war started with Iraq, the country next door. Sometimes warplanes came over Tehran at night. When that happened, Hadi's family went down to the basement and waited together until it was safe. People waited in long lines for gas and groceries, and the power often went out.
For readers 12 and up:
When Hadi was about 7, the Iranian Revolution took place. Soon after, Iraq invaded Iran, and a long war began. Hadi's family lived near Tehran's main TV station, which was a target for bombing. Air raids came at night. The family huddled in the basement with their hands over their ears, hoping their apartment would not be hit. Lines at gas stations and grocery stores lasted for hours, and blackouts were common.
Age 10: A Computer With No Games
When the twins were 10, their father came home from a trip abroad with a Commodore 64 computer. Hadi remembers what his father told them: "This doesn't have any games on it, but here's a book to teach yourself BASIC programs." The challenge was simple: learn to make your own games.
So the twins did. They taught themselves BASIC from the book. When the power came back on in the mornings after a night of blackouts, they went straight back to the keyboard. Coding gave them a sense of order while life around them felt chaotic. Years later Hadi said coding "provides confidence and optimism, especially if you're stuck in an otherwise hopeless situation." By the time they left Iran, both boys were expert programmers.
Age 12: Italy, Then America
In 1984, when Hadi was about 12, the family left Iran. They went first to Trieste, Italy, and arrived in the United States a few months later. His parents worked three jobs each to make ends meet.
Middle school in America was hard. "I had absolutely no idea how to fit in, how to socialize, or how to make friends," Hadi said.
Ages 14β17: Coding Pays the Bills
In high school, the twins found that their coding skills were worth real money. They got professional programming jobs that paid about ten times what their friends earned at gas stations and restaurants. Hadi spent his summers working as a software engineer to help pay for high school and, later, college.
After 18
Hadi went to Harvard University, where he earned a bachelor's and a master's degree in computer science. He and Ali paid their way partly by teaching computer science to other students. In his senior year, the World Wide Web appeared, and he decided he wanted to mix business and technology.
At Microsoft, he was the group program manager for Internet Explorer during the "browser wars" of the 1990s, and later he ran the MSN website. He was on the founding teams of two startups, Tellme Networks and iLike, which were bought by Microsoft and MySpace. He was an early advisor to Facebook and Dropbox and invested in companies such as Airbnb and Uber.
His own school in Iran had no computer science classes. In 2013, he and Ali launched Code.org to help schools teach computer science. Code.org runs the Hour of Code, a one-hour coding activity that has reached more than 100 million students, and it has helped put computer science classes in 15% of U.S. classrooms.
Bonus Points
- Hadi and Ali are identical twins, and they built Code.org together.
- Hadi has invested in Airbnb, Uber, Zappos and Indiegogo.
- In kindergarten in Tehran, the Partovi twins were the only Iranian kids in their class who couldn't speak Farsi.
- One of Hadi's cousins, Dara Khosrowshahi, became the CEO of Uber.
What Can We Learn From Hadi Before 18?
- If nothing is there, build it. A computer with no games turned Hadi and Ali into programmers at 10.
- Learning can be a safe place. During blackouts and air raids, coding gave Hadi a sense of order.
- Being the new kid is hard, and it passes. He struggled to make friends in middle school, then found his place through his skills.
- Skills can open doors early. As a teen, Hadi earned far more from coding than from a typical teen job.
Sources
- Code.org CEO: Coding Provided Order Amidst Chaos as Bombs Fell β Entrepreneur
- Hadi Partovi's American Dream: Making Coding Available to All β West Asia Council, HuffPost
- A War Survivor Changing Education Through Coding β HuffPost (2017)
- Hadi Partovi β Code.org leadership
- Ali Partovi β Wikipedia
- Hadi Partovi Was Raised in a Revolution. Today He Teaches Kids to Code β David Gelles, The New York Times (2019), republished by IranWire