Get All Access for $5/mo 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.
Hadi Partovi, the co-founder and CEO of

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

The co-founder and CEO of, 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, 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." 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'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 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 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 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, 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 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,, 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.

Editor's Pick

Business Solutions

Increase Productivity with This Microsoft 365 Subscription, Now $25 Off

It can make the entrepreneur life a lot easier.

Business News

Apple Pay Later Is Ending. Here's What's Taking Its Place.

The program was available for less than a year.


This Artist Answered a Businessman's 'Powerful' Question — Then His Work Became 'the Poster Child for Juneteenth': 'Your Network Really Becomes Your Net Worth'

Reginald Adams was the executive director of a Houston-based art museum for more than a decade before he decided to launch his own public art and design firm.


Harvard Business School Professor Says 65% of Startups Fail for One Reason. Here's How to Avoid It.

Team alignment isn't nice to have -- it's critical for running a successful business.

Business News

Here's What Companies Are Open and Closed on Juneteenth 2024

Since it became a holiday in 2021, Juneteenth has been recognized by some major corporations as a paid day off.

Growing a Business

I Hit $100 Million in Annual Revenue by Being More Transparent — Here Are the 3 Strategies That Helped Me Succeed

Three road-tested ways to be more transparent and build relationships that can transform your business — without leaving you feeling nightmarishly over-exposed.