The True Story of How 11 Lines of Code Disrupted the Internet
Written on
Chapter 1: The Unexpected Catalyst
The saga of a developer inadvertently causing widespread internet disruption starts with a snack we all enjoy: Doritos. Just kidding! It was Azer Koçulu, who might have been enjoying some chips in his room when he accidentally took down Netflix, Facebook, and numerous other prominent sites.
But let’s dive into the intriguing account of how one individual managed to disrupt the internet by eliminating a mere 11 lines of code.
This all unfolded from a heated disagreement…
Unlike many trivial disputes online, Azer Koçulu's conflict didn’t revolve around the usual tech rivalries. Koçulu had been sharing his own code via npm, a widely-used package manager that serves as a repository for discovering and installing open-source software in JavaScript.
For those unfamiliar, npm is essential in web development. It’s utilized billions of times monthly due to its extensive library of free code packages contributed by the open-source community. By leveraging npm, developers can save time when building projects, often copying and pasting existing code. Many sites function in this manner, akin to a massive game of Jenga where open-source packages are stacked to streamline development. However, removing the wrong piece can cause the entire structure to collapse like a house of cards.
Among the various packages Koçulu had created was one called kik, which helped developers generate project templates. Although it wasn't widely recognized, it shared its name with a popular messaging application.
One day, Koçulu received an infuriating email from Bob Stratton, a patent and trademark agent associated with Kik. "Could you please rename your kik package?" Stratton requested. Koçulu firmly declined and told him to leave. It was clear that a resolution was unlikely. However, npm sided with the messaging app during the dispute, leading to the transfer of ownership for the kik package name away from Koçulu.
Here’s how Azer Koçulu caused internet chaos:
Feeling more furious than someone who just lost an election, Azer reached out to npm, demanding that all his open-source packages be removed out of spite. "I want nothing to do with npm anymore," he stated. "If you don’t do this, please instruct me on how to do it quickly."
Koçulu followed through on his threat. On March 23, 2016, he unpublished 273 open-source packages he had uploaded to npm, including a little-known package named Left-pad.
As a result, websites across the internet began to falter. Netflix, Facebook, and Spotify were among those affected, all relying on Left-pad somewhere in their code structure. Once it vanished from npm, many sites struggled to operate correctly. Oops.
Fortunately, due to caching, most regular users didn’t notice any issues. However, software developers and tech teams in Silicon Valley were in a frenzy, akin to an apocalypse, as they scrambled to find a solution. But after a brief moment of reflection—perhaps while enjoying an avocado toast and a complex Starbucks order—they discovered a fix.
In an unprecedented move, npm decided to republish Left-pad to restore order. The involved parties—Kik, Koçulu, and npm—all issued statements asserting they were not at fault. But can anyone really blame them for avoiding responsibility for the chaos that ensued?
Not really. But if you want to stay informed, consider subscribing to my articles for notifications on new posts. Just click here. And if you found this article enjoyable, a generous clap would be greatly appreciated.
Section 1.1: The Importance of Open Source
Open-source software plays a crucial role in modern development, allowing programmers to collaborate and enhance their projects. This collaborative spirit is what drives innovation and efficiency in the tech world.
Subsection 1.1.1: The Role of npm in Development
Section 1.2: The Aftermath of the Incident
Chapter 2: Lessons Learned
In the video titled "The Man Who Broke The Internet By Deleting 11 Lines of Code," we explore the fascinating implications of Koçulu's actions and how they reverberated throughout the tech landscape.
Another insightful video, "That time one guy BROKE the internet with 11 lines of code," delves into the details and consequences of this extraordinary incident, shedding light on the vulnerabilities in our digital infrastructure.