this post was submitted on 13 Nov 2024
770 points (96.1% liked)

Greentext

4383 readers
1543 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 11 hours ago* (last edited 11 hours ago) (1 children)

Python:

print("Hello world!")
[–] [email protected] 8 points 11 hours ago* (last edited 11 hours ago) (2 children)

C:

#include <stdio.h>

int main() {
    printf("Hello World!");
    return(0);
}

EDIT: POSIX-compatible shell:

echo "Hello World!"
[–] [email protected] 1 points 24 minutes ago

PHP:

Hello World!
[–] [email protected] 2 points 11 hours ago* (last edited 11 hours ago) (1 children)

Python2 is only one character longer:

print "Hello world!"

And you get proper data types too.

[–] [email protected] 2 points 10 hours ago

Shell is only meant for duct tape scripts, you know to tie two regular compiled programs together