Tech

Mark Zuckerberg once told a funny story of how Dustin Moskovitz became his Facebook cofounder by learning to code in a couple of days

Read in app
Zuck empty lecture 2005
Mark Zuckerberg was a relative nobody in 2005, and a lecture he gave at Harvard was to an almost empty room.  YouTube/CS50

Imagine spending a few days to learn a new programming language that would later turn you into a billionaire.

In 2005, when Facebook was a tiny startup with 50 people, CEO Mark Zuckerberg was invited to give a lecture at his old school, Harvard.

He was such a relative nobody at that time that hardly anybody showed up to hear him.

But the lecture was posted a couple of years ago on YouTube, and it's kind of fun to listen to it now, with 20/20 hindsight.

In 2005, Facebook was making some waves in its world. It was a social network for college students that had spread to 2,000 schools and was generating around 400 million page views a day, Zuckerberg told the audience.

That was, he estimated, more than Google was doing back then. Remember that, in 2005, Yahoo was still a big deal for searching the 'net and was considered one of the huge successful internet companies along with eBay and bookseller Amazon.

The best story he told was about how his roommate and fellow computer-science student, Dustin Moskovitz, got involved with Facebook.

Dustin Moskovitz headshot
Dustin Moskovitz.  Asana

Zuck had built Facebook in his dorm room using a programming language called PHP, and the site was instantly popular.

"I started writing the site, launched it at Harvard in February 2004, so I guess about two years ago now. Within a couple of weeks, a few thousand people had signed up and we started getting some emails from people at other colleges asking for us to launch it at their schools," he said.

He was taking a hard but fun computer-science class, "but it didn't leave me with much time to do anything else with Facebook, so my roommate Dustin was like, 'Hey, I want to help out. I want to help you do the expansion.'"

Zuckerberg told Moskovitz, "That's pretty cool. But you don't know any PHP."

Fortunately, PHP was easy to learn, particularly if you knew the classic programming language C, which Moskovitz had learned.

'PHP, not PERL, dude'

"That weekend he went home, bought the book 'PERL for Dummies,' came back, and was like, 'OK, I'm ready to go,'" Zuck said, and told him, "The site's written in PHP, not PERL, dude."

Undeterred, Moskovitz studied PHP and learned that language, too, in "a couple of days" and "went to work," helping Zuckerberg figure out the technical issues of expanding from one school to many.

mark zuckerberg dustin moskovitz
Moskovitz and Zuckerberg in the early days of Facebook.  <a href="javascript:;" rel="nofollow" target="_blank">valleywagprime</a> via Flickr

Zuckerberg and Moskovitz dropped out of Harvard and moved to Palo Alto, California, to work on Facebook full-time.

Moskovitz left Facebook in 2008, three years after this talk. His Facebook stock would later make him a young billionaire, too. Years later, a somewhat fictionalized account of their relationship would become a central theme in the book "The Accidental Billionaires" which would lead to the movie "The Social Network."

And Zuck said something else in that lecture that's really interesting in hindsight: He never planned on Facebook becoming the huge global phenomenon it is today.

"One characteristic of companies that are really successful, not that we're really successful, but we still fall into this bucket, is that they started off trying to make something cool and not trying to make a company," he says.

Here's the full lecture, which is about an hour long, but Moskovitz's story is right at the beginning:

Read next

Julie Bort was Business Insider's Editor at Large for the Tech team. She loves investigating stories and shedding light on the tech industry's most amazing people.Here's a small sample of some of Julie's work.Former Pinterest employees describe a traumatic workplace where managers humiliate employees until they cry, Black people feel alienated, and the toxic culture 'eats away at your soul'Sex, tequila, and a tiger: Employees inside Adam Neumann's WeWork talk about the nonstop party to attain a $100 billion dream and the messy reality that tanked itInsiders say WeWork's IT is a patchwork of cheap devices and Band-Aid fixes that will take millions to fixWeWork's toxic phone booths were created in-house by its Powered by We business70-hour weeks and 'WTF' emails: 42 employees reveal the frenzy of working at Tesla under the 'cult' of Elon MuskElon Musk works so many hours at Tesla, employees are constantly finding him asleep under tables and desksHow this woman went from a Pizza Hut employee to a founder of a $4 billion startupAn Oracle insider explains how some salespeople gamed the system to sell more cloudTHE TAKEDOWN OF TRAVIS KALANICK: The untold story of Uber's infighting, backstabbing, and multimillion-dollar exit packagesMicrosoft is in talks to buy GitHub, a startup at the center of the software world last valued at $2 billionThe alarming inside story of a failed Google acquisition, and an employee who was hospitalizedInside Facebook's plan to eat another $350 billion IT marketHow a registered sex offender wound up living in an Airbnb hosting unsuspecting guestsA controversial ex-banker is the person who really runs Twitter — and he's gambling the company's future on one risky betSecret passages and skipped meals: Oracle's CEO gave us a rare peek at what it really takes to run a $37 billion companyHP told some employees to choose between becoming contractors with no benefits or being fired without severance'I felt like we were being extorted': Customer says Oracle tried to strong-arm him into a cloud saleHow the queen of Silicon Valley is helping Google go after Amazon's most profitable businessAirbnb host: A guest is squatting in my condo and I can't get him to leaveLIES, BOOZE, AND BILLIONS: How one of the fastest-growing startups in Silicon Valley history raised $580 million then spiraled out of controlGitHub is undergoing a full-blown overhaul as execs and employees depart — and we have the full inside storyWhen she's not writing for Business Insider, Julie can usually be found on the trails, on my mountain bike, or on my skis, if you know where to look.