Should the beginner's program read "Hello, World"?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island
--
Chapters
00:00 Should The Beginner'S Program Read &Quot;Hello, World&Quot;?
00:32 Accepted Answer Score 5
00:47 Answer 2 Score 4
01:55 Answer 3 Score 5
02:19 Thank you
--
Full question
https://english.stackexchange.com/questi...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#commas #programming
#avk47
ACCEPTED ANSWER
Score 5
Whilst according to my memory inserting the comma is technically correct, it is now rarely seen in everyday communications. I favour Hello World, therefore.
ANSWER 2
Score 5
Conventional orthography demands:
Hello, world!
but, given the context, it doesn't really matter what you type. In my experience, the following is common:
Hello world
Since a "Hello world" program terminates immediately after printing its message, I personally prefer:
Goodbye, world.
ANSWER 3
Score 4
For what it's worth, Wikipedia calls it the "Hello world" program, but indicates there should be a comma in the output:
A "Hello world" program is a computer program that outputs "Hello, world" on a display device.
Other sources make this two-word phrase an exclamation:
Lesson: A Closer Look at the "Hello World!" Application
Now that you've seen the "Hello World!" application (and perhaps even compiled and run it), you might be wondering how it works. Here again is its code:
class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); // Display the string. } }
Other times, both the comma and the exclamation point are used:
Hello, world! programs make the text "Hello, world!" appear on a computer screen.
Incidentally, this website lists several Hello world programs, most of which use both the comma and the exclamation point, although there are a few exceptions, like this one:
xhello db 'Hello world !!!$'
Ultimately, though, in this context, it matters very little what's between the quotation marks, so long as the program runs.