Hacker News new | ask | show | jobs
by NateEag 2272 days ago
I'd think most.

I'm definitely not one of the more talented people here, but off the top of my head...

Python 3:

  print('Hello, world!')
JS:

  console.log('Hello, world!')
Bash:

  echo 'Hello world!'
PHP:

  Hello, world!
C:

  #include <stdio.h>
  
  int main() {
      printf("Hello, world!");
  }
On my phone, so I couldn't swear they're perfect. Been a decade since I wrote any C, particularly.

My point is just that Hello World is really easy.

1 comments

The php example made me chuckle.
Thanks.

As much as I hate the language, it's a great example of the absurdist pragmatism that has made it so popular.