Differences between version 21 and predecessor to the previous major change of HelloWorld.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 21 | Last edited on Thursday, June 3, 2004 9:53:16 pm | by AristotlePagaltzis | Revert |
Older page: | version 18 | Last edited on Monday, May 10, 2004 12:30:19 pm | by DavidHallett | Revert |
@@ -1,8 +1,11 @@
-![HelloWorld]
-
This is the default introductory program to a new programming or scripting language
. The main purpose and goal of the program is to display
the text string "Hello World\n" to the standard output stream ([stdout(3)])
.
+This is the default introductory program to a new ProgrammingLanguage
. It simply prints
the text string "Hello World\n".
-Some examples in different [ProgrammingLanguage]s:
+HelloWorld is not really meant as a sample program, though. What you learn from creating a Hello World program is how to use the language tools: it's a first exercise in entering, compiling and running a program on a paticular system, and it might make you go find the documentation on the I/O library in some cases. In many very high level languages, it looks exactly the same.
+
+As a demonstration of the feel of a language, PPR:WardNumber is a much better problem. [99 Bottles of Beer on the Wall | http://99-bottles-of-beer.ls-la.net/] can also be adequate.
+
+
Some examples of HelloWorld
in different [ProgrammingLanguage]s:
[BASIC]
PRINT "Hello World\n"
@@ -84,34 +87,14 @@
UserRPL (for the HP48 Calculator):
<< "Hello World" MSGBOX >>
-Well yeah, I could go on and on for different programming languages but there would be too many to list here
[1
].
-
-
-----
-Also see PolyGlot
-----
-
-Up there you see the problem with
Hello World; most Hello Worlds look exactly like the Python one. It's not really meant as a sample program. What you learn from creating a Hello World program is how to use the language tools: it's a first exercise in entering, compiling and running a program on a paticular system, and it might make you go find the documentation on the I/O library in some cases. [99 Bottles of Beer on the Wall | http://99-bottles-of-beer.ls-la.net/] is slightly better for demonstrating the look of a language, PPR:WardNumber a lot better.
-
--- GlynWebster
-
-----
-
-__Hello, World Page!__
-%%%
-http://www2.latech.edu/~acm/HelloWorld.shtml
-%%%
-A very comprehensive [HelloWorld] website with MANY programming language [HelloWorld] codelets.
-
--- DrewBroadley
-----
-
+[PHP
]:
+ <?php
+ echo ("
Hello World\n")
;
+ ?>
-__Footnotes__
+And the list could go on and on.
-[1] In fact there are hundreds of programming languages. [2]
-[2] Thousands. (You haven't written your own yet?
:-) [3]
-[3] I'm on my third at the moment
.. >:-)[4
]
-
[4] Footnote or programming language?[5
]
-[5] Both :)
+See also:
+*
[Hello, World Page! | http
://www2
.latech
.edu/~acm/HelloWorld.shtml
], a very comprehensive collection of HelloWorld programs in many
[ProgrammingLanguage
]s
+* PolyGlot