// 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
- 1969
Apollo 11 Guidance Computer
AGC assemblyThe code that landed humans on the Moon, comments and all
> TC BANKCALL # TEMPORARY, I HOPE HOPE HOPE - 1972
hello, world
B, CThe first program almost everyone writes
> printf("hello, world\n"); - 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. - 1983
Duff's device
C (K&R style)A switch interleaved with a do-while, and it's legal
> case 0: do { *to = *from++; - 1999
Quake III fast inverse square root
C0x5f3759df and the comment that went with it
> i = 0x5f3759df - ( i >> 1 ); // what the fuck? - 2016
left-pad
JavaScript (Node.js / npm)Eleven lines that broke the npm ecosystem for an afternoon
> while (++i < len) { str = ch + str; }