853
you are viewing a single comment's thread
view the rest of the comments
[-] sugar_in_your_tea@sh.itjust.works 18 points 10 months ago* (last edited 10 months ago)

Python:

print("Hello world!")
[-] dch82@lemmy.zip 12 points 10 months ago* (last edited 10 months ago)

C:

#include <stdio.h>

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

EDIT: POSIX-compatible shell:

echo "Hello World!"
[-] derpgon@programming.dev 5 points 10 months ago
[-] PushButton@lemmy.world 4 points 10 months ago

Rust:

Still fighting the burrito check fil er
[-] sugar_in_your_tea@sh.itjust.works 3 points 10 months ago* (last edited 10 months ago)

Python2 is only one character longer:

print "Hello world!"

And you get proper data types too.

[-] dch82@lemmy.zip 2 points 10 months ago

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

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

Greentext

7207 readers
726 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 2 years ago
MODERATORS