Multilingual

Back to blog

8/15/23

smooth lines of Geidar Aliev Center downtown Baku, built by Zaha Hadid

Photo credit: Yura Timoshenko

Written by Treknuts

Hello, World!

Ah! The classic first program written by probably every single person that has even written a lick of code. Here’s my “look how smart I am” version of someone that knows about 5 words of Spanish and thinks they’re fluent. Here’s “Hello, World!” in every language I have worked with. Keep in mind I’m fluent in maybe one.

Java

package com.example;

public static void main(String[] args) {
    System.out.println("Hello, Java!");
}

HTML/PHP

<html>
 <head>
  <title>Hello, World!</title>
 </head>
 <body>
 <?php echo '<p>Hello, World!</p>'; ?>
 </body>
</html>

Kotlin

fun main() {
    val name = "World";
    println("Hello, $name!);
}

JavaScript

document.createTextNode("Hello, World!");

GraphQL

Not entirely sure how to do this in GraphQL, but here’s a stab at it! I’m looking for ZeepZorp’s homeworld.

{
  user(name: "zeepzorp") {
    homeWorld
  }
}

Rust

fn main() {
    println!("Hello, Rust!");
}

C++

#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

Tags

Rant

Java

PHP

Kotlin

HTML

JavaScript

Rust

C++