// a curated collection

Emblematic
Source Code

The snippets that shaped computing culture. Code that landed on the Moon, broke the internet for an afternoon, or carried a comment nobody forgot. Each one comes with its story and a plain-language explanation.

Entries
6
Span
1969–2016
File types
4
  1. 1969

    Apollo 11 Guidance Computer

    AGC assembly

    The code that landed humans on the Moon, comments and all

    > TC BANKCALL # TEMPORARY, I HOPE HOPE HOPE
  2. 1972

    hello, world

    B, C

    The first program almost everyone writes

    > printf("hello, world\n");
  3. 1975

    Unix V6: "You are not expected to understand this"

    C (pre-K&R)

    The most famous comment in operating-system history

    > * You are not expected to understand this.
  4. 1983

    Duff's device

    C (K&R style)

    A switch interleaved with a do-while, and it's legal

    > case 0: do { *to = *from++;
  5. 1999

    Quake III fast inverse square root

    C

    0x5f3759df and the comment that went with it

    > i = 0x5f3759df - ( i >> 1 ); // what the fuck?
  6. 2016

    left-pad

    JavaScript (Node.js / npm)

    Eleven lines that broke the npm ecosystem for an afternoon

    > while (++i < len) { str = ch + str; }