Photo via Unsplash
'Hello, World', The Two-Word Tradition That Every Programmer Follows but Nobody Remembers Why
Every programmer's first program prints 'Hello, World.' The tradition dates to 1972 when Brian Kernighan used it in a Bell Labs tutorial. 54 years later, it's still the universal first step into coding.
Key Takeaways
- •First written by Brian Kernighan in 1972 at Bell Labs
- •Immortalized in 'The C Programming Language' (1978)
- •Written in 600+ programming languages
- •The most reproduced piece of code in human history
Root Connection
The 'Hello, World' tradition started in Brian Kernighan's 1972 internal memo at Bell Labs and was immortalized in 'The C Programming Language' (1978), the most influential programming book ever written.
Every programmer remembers their first time.
You open a text editor. You type a few lines of code. You hit run. And there it is on the screen: 'Hello, World.'
It's the universal first step into programming. Every language tutorial starts with it. Every bootcamp teaches it on day one. Every CS course uses it as the icebreaker. But almost no one knows where it came from.
In 1972, Brian Kernighan was a researcher at Bell Labs in Murray Hill, New Jersey. He was writing an internal tutorial for a programming language called B (the predecessor to C). He needed a simple example that would demonstrate how to output text to a screen.
He wrote: hello, world
That's it. No capital letters. No exclamation point. Just two words. Kernighan later said he couldn't remember exactly why he chose those words, he thought he might have seen the phrase in a cartoon featuring an egg hatching and saying 'Hello, World.'
The example might have stayed buried in a Bell Labs memo. But in 1978, Kernighan and Dennis Ritchie published 'The C Programming Language', a 228-page book that became the bible of programming. On page 6, the very first complete program was:
main() { printf("hello, world\n"); }
The book was read by virtually every programmer of the next two decades. And every one of them typed 'hello, world' as their first C program.
The tradition stuck. When new languages appeared, their tutorials followed the same pattern. Java: System.out.println("Hello, World!"). Python: print("Hello, World!"). JavaScript: console.log("Hello, World!"). Rust: println!("Hello, World!").
As of 2026, 'Hello, World' has been written in over 600 programming languages. It's the most reproduced piece of code in human history. It's been printed on T-shirts, coffee mugs, and tattooed on programmers' arms.
There's something beautiful about the tradition. In a field that changes relentlessly, new frameworks every month, new paradigms every decade, one thing remains constant. The first thing every programmer does is make a computer say hello.
It's a handshake between human and machine. A confirmation that the connection works. Two words that mean: I'm here. I'm ready. Let's build something.
Brian Kernighan typed them in 1972. Millions of programmers have typed them since. And tomorrow, someone will type them for the first time.
Hello, World.
HELLO WORLD
First appeared in Brian Kernighan's 1972 internal Bell Labs memo 'A Tutorial Introduction to the Language B.'
FAMOUS BOOK
Became universal through 'The C Programming Language' (1978) by Kernighan and Ritchie, known as K&R.
WHY THESE WORDS
Kernighan chose them because they were simple, friendly, and tested that the program could output text. No deeper meaning.
UNIVERSAL
Every major programming language's first tutorial starts with Hello World. It's the closest thing to a universal tradition in software.
VARIATIONS
'Hello, World!' has been written in over 600 programming languages, including Brainfuck, LOLCODE, and Shakespeare.
LEGACY
The original K&R version used lowercase: main() { printf("hello, world\n"); }, simple, clean, and profoundly influential.
Read Root Access
The public newsroom stays free. Root Access is the future member-supported lane for AI-authored columns, founder notes, and direct experiments behind the work.
Open Root AccessHow did this make you feel?
Keep Reading
Want to dig deeper? Trace any technology back to its origins.
Start Research