aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Computing
  • Programming

Tiny Snippets Of Code That Changed The World

  • Aelia Vita
  • January 23, 2023
  • 4 minute read

Only a few short lines can have a massive, global impact.

In 1997, Ethan Zuckerman broke the Internet — by inventing the pop-up ad.


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

He was working for Tripod.com, an online service that let people make little web pages for free. To make money, Tripod sold ads that ran alongside the pages. The problem was, ads would wind up running next to racy content — a user’s page devoted to anal sex, say — and advertisers did not like this.

Zuckerman’s boss asked him to figure out some solution. Wasn’t there some way to position the ads so they weren’t right next to sexytime user-generated stuff?

That’s when Zuckerman figured out a weird, hacky solution: When you visited a Tripod page, it would spawn an entirely new pop-up page with just the ad. That way the ad would not be, technically, associated with any particular user page. It’d just be floating there onscreen.

Here’s the thing, though: Zuckerman’s bit of Javascript, that created the popup ad? It was incredibly short — a single line of code:

window.open('http://tripod.com/navbar.html'
"width=200, height=400, toolbar=no, scrollbars=no, resizable=no, target=_top");

Basically, the Javascript tells the browser to open a new window that’s 200 pixels wide and 400 pixels tall, with no scrollbar or toolbar on the top, positioned on top of whatever other web pages are currently open.

Simple, but pernicious! Pretty soon, commercial websites had copied Zuckerman’s innovation, and the Internet was positively infested with pop-up ads. A coder I knew in the early 00s who worked for a download site told me that the absolute vast majority of their revenue came from porn pop-up ads.

Read More  5 New Sudo Features Sysadmins Need To Know In 2022

You’ve no doubt seen pop-up ads. You no doubt hate them. With luck you use a browser that now suppresses them.

As Zuckerman put it, he had written a single line of code “that made the world a measurably worse place.”

A photo of the cover of “You Are Not Expected To Understand This”; it is blue and lying on its side, with the spine facing the viewer. The editor’s name, Torie Bosch, is in a green monospaced font; the title is in a white monospaced font

I ran across Zuckerman’s story in an essay he wrote for You Are Not Expected To Understand This: How 26 Lines of Code Changed the World. It’s an incredibly fun little collection of short essays, edited by Torie Bosch, that reflects on pieces of code that tilted the world on its axis.

What fascinated me is how brief most of these snippets are. This runs neatly counter to many pop-cultural assumptions about coding, which typically suggest that important code is massive and sprawling. Hollywood loves to depict “programmers programming” with their fingers in an absolute blur, pouring out a Niagara of code. Tales of Google’s dominance used to refer to its “2 billion lines of code”, as if that sheer heft were responsible for the firm’s success.

It’s often quite the opposite. Indeed, Google’s original innovation — the piece of code that vaulted Google above its search-engine peers, back in the 90s — was its “PageRank” algorithm, which calculated the value of web page based on how many other pages linked to it, and the quality of those linking pages. It’s not a terribly long piece of code; people have done their own versions in Python, and it’s only a few dozen lines.

Sure, Google’s overall operations — like those of any big tech firm — involve thousands of processes to keep things running. That’s why their total code base grows so huge. But some of the code with the biggest impact can be pretty pithy.

Read More  Why I Love Go

You should read the whole book (or buy it for nerds as a holiday gift), because the examples are fascinating and wide-ranging. There’s a chapter by Charlton McIlwain on the “police beat algorithm” developed in the late 1960s, which tried to predict where crime was mostly likely to occur, so law-enforcement agencies could send more police that way. This, of course, wound up creating a racist feedback loop: Since poverty-stricken Black neighborhoods were already overpoliced compared to white ones, the algorithm directed more policing there, producing more arrests, which convinced the algorithm to send yet more police; rinse and repeat.

The police-beat algorithm isn’t terribly lengthy; in You Are Not Expected To Understand This, the artist Kelly Chudler draws it out …

About 25 lines of code that includes several mathematical formula. Alas, it’s hard to redact it in plain text here, since it uses mathematical notation

And here’s another, even shorter piece of code that changed the world: The “tracking pixel”.

You probably interact with this code every day, without realizing it, as Lily Hay Newman notes in her chapter on tracking pixels. Basically, it’s a little bit of HTML that embeds a single tiny pixel inside an email, so small you won’t see it. But if someone sends me an email with that tracking code, it spies on me. It works like this: The instant I open the message, the code requires my browser to request that single-pixel image. The person who sent the email to me watches to see, hey, has Clive’s browser asked for that pixel yet? So effectively, the person who sent me the email can tell the instant I’ve opened the email.

Putting a tracking pixel into an email is incredibly easy — it’s this single line:

<img src="URL LINKING TO THE PIXEL ONLINE" width="0" height="0">

And here’s one final, older example! The book has a chapter (written by Ellen R. Stofan and Nick Partridge) on the “bailout” code for the lunar module of the Apollo 11 moon-landing mission. That “bailout” code ran on the lunar module’s tiny little on-board computer, and was designed to help prioritize things: If the computer got overloaded, it would toss aside all but the most important work.

Read More  Google I/O 2019 | Material Theming: Build Expressively with Material Components

This turned out to be incredibly important when the lunar module was approaching the moon, because sure enough, the computer got way overloaded with work. The “bailout” code jumped into action, shutting down everything that wasn’t utterly crucial to landing the module. It even shut down some of the display systems inside the lunar module, which scared the crap out of the astronauts. But it worked: The module landed safely.

Here’s that code — only 22 lines …

POODOO    INHINT
CA Q
TS ALMCADR

TC BANKCALL
CADR VAC5STOR # STORE ERASABLES FOR DEBUGGING PURPOSES.

INDEX ALMCADR
CAF 0
ABORT2 TC BORTENT

OCT77770 OCT 77770 # DONT MOVE
CA V37FLBIT # IS AVERAGE G ON
MASK FLAGWRD7
CCS A
TC WHIMPER -1 # YES. DONT DO POODOO. DO BAILOUT.

TC DOWNFLAG
ADRES STATEFLG

TC DOWNFLAG
ADRES REINTFLG

TC DOWNFLAG
ADRES NODOFLAG

TC BANKCALL
CADR MR.KLEAN
TC WHIMPER

This book is really quite a blast — very worth checking out!

Source: Medium


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

Aelia Vita

Related Topics
  • Code
  • Coding
  • Developers
  • Programming
  • Zuckerman
You May Also Like
Getting things done makes her feel amazing
View Post
  • Computing
  • Data
  • Featured
  • Learning
  • Tech
  • Technology

Nurturing Minds in the Digital Revolution

  • April 25, 2025
View Post
  • Computing
  • Public Cloud
  • Technology

United States Army Enterprise Cloud Management Agency Expands its Oracle Defense Cloud Services

  • April 15, 2025
Microsoft’s Majorana 1 chip carves new path for quantum computing
View Post
  • Computing
  • Technology

Microsoft’s Majorana 1 chip carves new path for quantum computing

  • February 19, 2025
View Post
  • Computing
  • Engineering

Why a decades old architecture decision is impeding the power of AI computing

  • February 19, 2025
CES 2025: Intel Shows Off Its AI Tech
View Post
  • Computing
  • Technology

CES 2025: Intel Shows Off Its AI Tech

  • January 23, 2025
View Post
  • Computing
  • Design
  • Engineering
  • Technology

Here’s why it’s important to build long-term cryptographic resilience

  • December 24, 2024
Cloud platforms among the clouds
View Post
  • Computing
  • Learning
  • Public Cloud

Best Cloud Platforms Offering Free Trials for Cloud Mastery

  • December 23, 2024
View Post
  • Computing

Azure Cobalt 100-based Virtual Machines are now generally available

  • October 22, 2024

Stay Connected!
LATEST
  • college-of-cardinals-2025 1
    The Definitive Who’s Who of the 2025 Papal Conclave
    • May 7, 2025
  • conclave-poster-black-smoke 2
    The World Is Revalidating Itself
    • May 6, 2025
  • 3
    Conclave: How A New Pope Is Chosen
    • April 25, 2025
  • Getting things done makes her feel amazing 4
    Nurturing Minds in the Digital Revolution
    • April 25, 2025
  • 5
    AI is automating our jobs – but values need to change if we are to be liberated by it
    • April 17, 2025
  • 6
    Canonical Releases Ubuntu 25.04 Plucky Puffin
    • April 17, 2025
  • 7
    United States Army Enterprise Cloud Management Agency Expands its Oracle Defense Cloud Services
    • April 15, 2025
  • 8
    Tokyo Electron and IBM Renew Collaboration for Advanced Semiconductor Technology
    • April 2, 2025
  • 9
    IBM Accelerates Momentum in the as a Service Space with Growing Portfolio of Tools Simplifying Infrastructure Management
    • March 27, 2025
  • 10
    Tariffs, Trump, and Other Things That Start With T – They’re Not The Problem, It’s How We Use Them
    • March 25, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    IBM contributes key open-source projects to Linux Foundation to advance AI community participation
    • March 22, 2025
  • 2
    Co-op mode: New partners driving the future of gaming with AI
    • March 22, 2025
  • 3
    Mitsubishi Motors Canada Launches AI-Powered “Intelligent Companion” to Transform the 2025 Outlander Buying Experience
    • March 10, 2025
  • PiPiPi 4
    The Unexpected Pi-Fect Deals This March 14
    • March 13, 2025
  • Nintendo Switch Deals on Amazon 5
    10 Physical Nintendo Switch Game Deals on MAR10 Day!
    • March 9, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.