Join our Waitlist for Expert Advice!

Code.org CEO: Coding Provided 'Order Amidst Chaos' as Bombs Fell Near My Home Ahead of next week's Hour of Code, Hadi Partovi shares how computer programming offered calm, confidence and optimism in an otherwise hopeless situation.

By Kim Lachance Shandrow

Opinions expressed by Entrepreneur contributors are their own.

Code.org
Hadi Partovi, the co-founder and CEO of Code.org

Hadi Partovi, 43, remembers when he got hooked on coding. He was 10 and bombs were falling outside.

The co-founder and CEO of Code.org, a Seattle-based nonprofit dedicated to expanding global student access to computer science, first learned to program video games while growing up in war-torn Iran in the 1980s. His family's home was in the capital of Tehran near the local TV station, a prime bombing target.

One day, Hadi's father brought home a computer -- a Commodore 64 -- for him and his identical twin brother, Ali. "He said, "This doesn't have any games on it, but here's a book to teach yourself BASIC programs. You can write your own games,'" Hadi recalls.

Related: With Help From Zuck, This Campaign Just Became Indiegogo's Most Funded Project Yet

And, together, they did. For the Partovi twins, the PC's monochrome glow was a beam of light in the darkest of times. When Saddam Hussein's air raids raged at night, they huddled in the basement with their parents, covered their ears and hoped their apartment wouldn't get hit. Then, in the morning, when the electricity was back on, downstairs to the keyboard they returned, coding "order amidst chaos."

In 1984, the Partovi family emigrated to America. By that time, Hadi and Ali were expert programmers. Their parents worked three jobs each to make ends meet. Later, in high school, when their friends punched in at gas stations and restaurants, the twins worked professional coding gigs for 10 times the pay. They paid their way through Harvard University teaching computer science to their fellow classmates.

Three decades, two remarkably successful careers in tech, two multimillion-dollar acquisitions of their individual companies by Microsoft and several lucrative "unicorn club" investments later, the Partovi twins are giving back. Launched in 2013, Code.org is their way of sharing the hope and freedom that coding afforded them with children everywhere.

Related: Teaching Girls to Code

"As an immigrant to this country, I feel like I'm living the American dream," Hadi says. "I've had great success in tech and, because of that, I feel I have this duty to give back. And, for me, the number one way to give back is to give kids the same type of opportunity I had."

Code.org helps kids learn how to code in person and online for free. The now 50-employee organization invites children ("anyone 4 to 104," actually) to glean the basics of JavaScript programming through game-like animated tutorials, no experience required. The idea is that 60 short minutes is enough time to spark a person's interest in learning more about computer science and to inspire teachers to teach it.

The most popular of Code.org's initiatives is Hour of Code, an annual event that engages tens of millions of students in K-12 classrooms across the globe in a self-guided hour of coding. Now in its third installment, this year's Hour of Code takes place Dec. 7 through 13 in celebration of Computer Science Education Week.

Related: 12 Sites That Will Teach You Coding for Free

Hour of Code has attracted some high-profile participants. Last year, President Obama officially kicked off the event, joining an notable lineup of tech titans and celebs championing the Partovis' cause. Among them are Facebook chief operating officer Sheryl Sandberg, NBA all-star player Chris Bosh, singer-songwriter Usher, hip-hop artist will.i.am and actor Ashton Kutcher.

The goal is to show not only that coding is cool, but that it can open doors for anyone.

"We want people to recognize that computer science is something everybody can participate in, even if you're a 9-year-old Latina," says Hadi. "There's no reason that it should be limited to 18-year-old white boys in basements with energy drinks."

Viral from the start

Code.org began with a vision for a video. The Partovi twins set out to make a simple sizzle reel about how fun computer science can be. The video would highlight some of the best-known tech heavy hitters they were connected with from their high-level investments and business deals.

Related: Khan Academy Founder: No, You're Not Dumb. Anyone Can Learn Anything.

Published on YouTube on Feb. 26, 2013, the video shows some of today's most famous entrepreneurs reminiscing about when they first discovered their love of computers and programming. The inspiring collection of vignettes features Facebook co-founder Mark Zuckerberg (he taught himself how to code "for fun" in the sixth grade), Microsoft co-founder Bill Gates (the first program he wrote played tic-tac-toe), Twitter co-founder Jack Dorsey (at 15, he coded dispatching software that some taxicab companies still use today) and several other luminaries.

Related: 3 Organizations That Seek to Make Today's Kids Tomorrow's Moguls

The five-minute clip was an instant viral hit, topping YouTube's "most popular" chart in its first 48 hours live. Satisfied they'd made a splash, the Partovi twins felt they'd accomplished their objective. "Originally there was no plan beyond the video," Hadi says. "The true inspiration for doing what is now Code.org are the 20,000 educators who then reached out after that video saying, "Please help us bring this to our school.'"

Today, from New York to California, Code.org has trained some 16,000 teachers in person across 89 U.S. school districts, equipping them with the skills and classroom activity plans they need to sow the seeds of STEM education in their students. The Partovis' empowering program offers kids, the majority of whom might not otherwise be introduced to computer science, a glimpse of the doors coding could open for them and the barriers it could break down.

"There's a special allure to being able to tell a machine what to do," Hadi says. "The ability to harness a computing machine that can think and act a billion times faster than yourself provides confidence and optimism, especially if you're stuck in an otherwise hopeless situation."

Related: What Needs to Happen for More Women, Minorities to Get Into Computer Science
Kim Lachance Shandrow

Former West Coast Editor

Kim Lachance Shandrow is the former West Coast editor at Entrepreneur.com. Previously, she was a commerce columnist at Los Angeles CityBeat, a news producer at MSNBC and KNBC in Los Angeles and a frequent contributor to the Los Angeles Times. She has also written for Government Technology magazine, LA Yoga magazine, the Lowell Sun newspaper, HealthCentral.com, PsychCentral.com and the former U.S. Surgeon General, Dr. C. Everett Coop. Follow her on Twitter at @Lashandrow. You can also follow her on Facebook here

Want to be an Entrepreneur Leadership Network contributor? Apply now to join.

Business News

You Have One Month Left to Buy a House, According to Barbara Corcoran. Here's Why.

"If you are planning on waiting a year and seeing where interest rates go, you are out of your mind," Corcoran said.

Business News

These 3 Side Hustles Make the Most Money While Working Fewer Hours, According to a New Survey

The survey also found that having a side hustle doubled as a path to becoming more employable.

Side Hustle

I Made $14,000 in 1 Week With a Spontaneous Halloween Costume Side Hustle — Here's How

Sabba Keynejad was in art school when he started to refine his entrepreneurial skills.

Thought Leaders

These 3 Trends Will Change What It Means to Be an Entrepreneur in 2025

Here are three entrepreneurship trends from the new Global Entrepreneurship Monitor report that are changing the landscape for the future.

Franchise

The McRib Is Back, But Only at Select McDonald's — Here's Where to Find It

This scarcity is nothing new. In 2022, McDonald's announced a "Farewell Tour" for the McRib, suggesting that it might be the last time customers could get their hands on it.

Business Ideas

63 Small Business Ideas to Start in 2024

We put together a list of the best, most profitable small business ideas for entrepreneurs to pursue in 2024.