February 21, 2025 · adminadmin

“Hello, World!” is the universal greeting of programmers

Hello World code poster for qasim.net (C tradition since 1972)

“Hello World”, It’s often the first line of code written when learning a new language — simple, friendly, and symbolic.

The tradition began in 1972 when Brian Kernighan used it in a C programming tutorial at Bell Labs. Later, it appeared in the 1978 classic “The C Programming Language” by Kernighan and Dennis Ritchie, the creators of C. The phrase was chosen for its simplicity, it tests whether the code runs, prints text correctly, and connects the developer to their new programming environment.

Hello World Qasim.net
Hello World – Qasim.net

Over time, “Hello, World!” became a rite of passage. It’s not just about printing words; it marks the start of every coder’s journey — the moment when ideas turn into action and logic becomes language.

Today, whether it’s Python, Java, or Rust, every “Hello, World!” still celebrates that first spark of creation.

# In Python
print("Hello, World!")
// C
#include <stdio.h>
int main() {
    printf("Hello, World!\n");
    return 0;
}
// C++
#include <iostream>
int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}
// Java
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
// JavaScript
console.log("Hello, World!");
# Ruby
puts "Hello, World!"
// Go
package main
import "fmt"
func main() {
    fmt.Println("Hello, World!")
}
<!-- PHP -->
<?php
echo "Hello, World!";
?>
// Swift
print("Hello, World!")
// Rust
fn main() {
    println!("Hello, World!");
}