Mobile Development 7 min read

How a Bad PHP Code Led to Google’s Dodgeball and the Birth of Foursquare

From a clueless interview at Google in 2005 to the creation of Dodgeball, the story follows Dennis’s messy PHP code, its acquisition by Google, the rise of location‑based social apps, and how this journey ultimately birthed Foursquare, illustrating the power of ideas over imperfect code.

Java Tech Enthusiast
Java Tech Enthusiast
Java Tech Enthusiast
How a Bad PHP Code Led to Google’s Dodgeball and the Birth of Foursquare

In 2005 Dennis arrived at Google's New York office for an interview, where he struggled with classic algorithm questions and shocked interviewers with terrible PHP code.

Google office
Google office

Despite his lack of formal programming training, Google hired him to acquire the website he had built, called Dodgeball, to capture its revenue.

Dennis had earlier conceived the idea of a location‑based service while sending SMS messages to a server, allowing friends to see each other's positions on a web page.

After a difficult period working at various companies and a stint teaching ski lessons, he enrolled in NYU’s Interactive Telecommunications Program, where he and Renate rewrote the Dodgeball system in PHP for his master’s project.

In 2004 they launched Dodgeball, which quickly gained users, media attention, and eventually attracted Google’s acquisition.

Dodgeball interface
Dodgeball interface

Google’s purchase did not provide the support Dennis expected, and the service was later shut down in 2009, giving way to Google Latitude.

Undeterred, Dennis and Renate created a new version of the service, initially called Jimmy Disco, which became the wildly successful Foursquare, growing to millions of users and even attracting President Obama.

Foursquare logo
Foursquare logo

Throughout the journey, Dennis’s coding skills remained modest, but his innovative ideas proved that a compelling concept can thrive even with imperfect code.

location-based servicesFoursquareGoogle acquisitionmobile social appstartup history
Java Tech Enthusiast
Written by

Java Tech Enthusiast

Sharing computer programming language knowledge, focusing on Java fundamentals, data structures, related tools, Spring Cloud, IntelliJ IDEA... Book giveaways, red‑packet rewards and other perks await!

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.