'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.
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.
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.
How did this make you feel?
Recommended Gear
View all →Disclosure: Some links on this page may be affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. We only recommend products we genuinely believe in.
Framework Laptop 16
The modular, repairable laptop that lets you upgrade every component. The right-to-repair movement in action.
Flipper Zero
Multi-tool for pentesters and hardware hackers. RFID, NFC, infrared, GPIO — all in your pocket.
The Innovators by Walter Isaacson
The untold story of the people who created the computer, internet, and digital revolution. Essential tech history.
reMarkable 2 Paper Tablet
E-ink tablet that feels like writing on real paper. No distractions, no notifications — just thinking.
Keep Reading
Want to dig deeper? Trace any technology back to its origins.
Start Research