Talk:Computer Programming/Hello world/Archive 1

Articles for Deletion debate
This article survived an Articles for Deletion debate. The discussion can be found here. -Splash talk 23:01, 3 March 2006 (UTC)

Hello World!
Should there be some consistancy with the use of commas in this Hello World program listing? It's about half and half currently. 208.20.220.76 21:49, 31 March 2006 (UTC)
 * Aye, it would be a little nicer if they were consistent. The hello world program article says it prints "Hello, world!" (note the comma and lowercase 'w') so I suppose that's the format that should be used. Unless anyone has any objections I'll make the examples consistent. I'll wait a few days or so to give anyone time to add their input to this talk topic. Icey 04:59, 10 June 2006 (UTC)
 * I agree, both on the need for persistency and the proposed format. Denis Kasak 09:32, 11 June 2006 (UTC)
 * Hello, world! I mean, err, I've finished updating lots of entries that were either obvious, I could find other examples or the web or I took an educated guess at. There's a few left, especially ones like calculators and ones where everything was in uppercase. I'll leave those to someone with more knowledge on the language. Icey 00:41, 17 June 2006 (UTC)
 * There are numerous languages from older systems or on calculators that don't have punction marks and/or only have one case (the program I contributed for the HP 33s is one such example). Nothing to be done for them.  Bfootdav 17:43, 7 August 2006 (UTC)

M# Fictional Programming Language
Was linked to the page (the letter) "M". Obviously unintended. I've skimmed Alphabetical list of programming languages and List of esoteric programming languages, with no sign of it. Does anyone else know anything about it? I'm presuming it is/would be known as M Sharp, right? samwaltz 11:57, 30 June 2006 (UTC)


 * Could it be a typo for  M4 ?         A   4   and a   #   are next to each other on a keyboard.   -- GerardSchildberger (discuss • contribs) 17:55, 15 October 2018 (UTC)

Practical, or comprehensive?
Should the intention of this page be practical, or comprehensive? I'm considering adding examples for two other languages, but one is limited in scope and the other is so obscure it's esoteric.

If practical, such languages don't need to be included on the page.

If comprehensive, then we should endeavor to add every known language to the page.

--71.156.105.38 17:21, 27 July 2006 (UTC)
 * Esoteric? Is it this esoteric? Otherwise I think it'll be fine. The practicality of this list not inversely proportional to the number of entries or anything. Shinobu 14:18, 3 August 2006 (UTC)


 * A-ha! At least one of them belongs there. Thanks for the pointer. --71.156.105.38 17:31, 3 August 2006 (UTC)

VB example
The following code will not work: Sub Main Print "Hello World!" End Sub is in VB a graphical method to draw text on a form. It can be used without object qualifier only from form code. This example will yield an error like "Method not valid without suitable object". Shinobu 14:05, 3 August 2006 (UTC)

VB console
I removed the VB version from the console section, since it's a GUI hello world. You can actually write a console app in VB, but it's a lot of work: and serves more as a demo of arcane console API functionality than as a demo of VB coding. Shinobu 13:48, 5 August 2006 (UTC)

Wouldn't a GUI example be OK? I think an example using MessageBox or a form would be just fine, considering that getting the GUI doesn't require any code.

However, VB has changed significantly with the release of .NET, so we might need to list code for two separate versions. --Brilliand 03:16, 26 March 2007 (UTC)

Compiled sizes?
Could anyone include the sizes of the compiled executables, please? :-) 84.164.87.169 15:27, 13 August 2006 (UTC)
 * I doubt that would be a useful statistic; it would depends heavily on the implementation (the compilers, librariers, etc.), the options used for compiling the program and even the architecture for which it was compiled. With all that considered, it would hardly have any encyclopaedic value. Denis Kasak 16:51, 13 August 2006 (UTC)

Family BASIC Help?
When I tried the general code, all I get are zeros. Anyone know why? -- Lzer 22:30, 17 September 2006 (UTC)

Thai
ใช้ ไทย.ท

เริ่ม แสดง("สวัสดี,ชาวโลก!"); จบ

Missing: Small-C
Anyone who can may enter a small-c version of hello world.

ASCII
Isnt the "ASCII" entry irrelevant to this page? It should be deleted


 * I agree that it is a bit out of context considering that the topic is hello word programs; however, it is under the section of Media Formats and I think information about how the same data is represented in various formats is interesting and informative.
 * Perhaps another "book" or seperate topic should be created for this and reference in the related topics section. Johnvms11 (talk) 17:38, 25 March 2008 (UTC)

hi,

can any one add example of silverlight xaml and wpf and other winfx3 technologies

SilverLight Is missing
can any one add example of silverlight

silverlight xaml and wpf
and other winfx3 technologies

sed part is incorrect

 * sed(note: requires at least one line of input)

sed -ne '1s/.*/Hello, world!/p'

in fact `sed` requires no code for print anything:

sh$ sed <<"" > hello world! > or $ echo 'Hello world!' | sed

Offsite adoption
I expect it isn't the norm, but before anyone decides to throw it out, I'd be open to accepting it into RosettaCode.org. (RC isn't a wikibook, but rather specifically a programming chrestomathy website.) This is the page that inspired me to create the site. --Short Circuit (talk) 04:36, 20 April 2010 (UTC)

C++ hello world
The first C++ statement:

is both undesirable (due to no tabulation) and wrong (as it does not include the header ), yes? It almost implies that putting the code all in one line means you don't have to include the header! I will remove this statement completely, unless anyone has any objections (which I don't expect).

And also, I think it is probably appropriate to have just this one version of the program:

as it contains the keywords "using" and "namespace" which are more likely to be used than "std::" and distinguish it more from C. Would anyone agree?

--Adamd1008 (talk) 22:26, 15 July 2010 (UTC)

C version doesn't need return 0
C89 requires the return 0, while C99 states that hitting the closing } of main is equivalent to return 0;. C99 has been around for over a decade now, and is the only current C language. I'm of the mind to keep the return 0;, since C89 is still probably used in places, and C99 has had slow adoption. 216.188.252.240 (talk) 02:07, 10 October 2010 (UTC)

Filename extensions?
60.241.153.201 (discuss) 15:00, 31 August 2011 (UTC)

Proposed split defeats the comparison purpose
The purpose of the Computer Programming/Hello world article is to be able, at a glance, to compare comprehensively the structure and syntax of every language capable of displaying/outputting the string "Hello, World!"

A wikibookian has proposed the article be split. If the article is split, that would defeat the purpose of the collection on this page. The other wikibook articles which reference this article all make reference to the comprehensive comparison. I propose the split tag be removed and the article left intact. IE: delete Disneywizard (discuss • contribs) 20:59, 16 April 2012 (UTC)

I propose that this article be deleted and merged into Wikipedia's list at http://en.wikipedia.org/wiki/Hello_world_program_examples which is a lot cleaner, though it has far less examples. And change all links pointing here to point there. Because this page at its current state is a mess. Waterfalls12 (discuss • contribs) 02:40, 24 April 2012 (UTC)


 * This is not an article but a page of a book. I agree that it is a mess and even that it may not be useful if not properly utilized but we should also consider that all content in Wikibooks is a work in progress. --Panic (discuss • contribs) 02:46, 24 April 2012 (UTC)
 * All Wikimedia projects are works in progress. I think that a subdivision of languages into groups like


 * curly-braces languages, functional languages, object-oriented languages, procedural languages etc., or
 * with a menu containing the letters of the alphabet, would make the page shorter and clearer.

In the first splitting suggestion, the examples should be in a separate place so that the example of a language that is both functional and object-oriented, like C++, should reference the same example to avoid repetitions. Sae1962 (discuss • contribs) 08:56, 30 August 2012 (UTC)

ANSI C and C are identical
What's the point in having both? They are literally identical, and the C example would of course be to the ANSI standard by default.. it seems ridiculous to have both. 2607:FEA8:8460:63B:5C54:6CDA:E95:4268 (discuss) 05:10, 24 February 2018 (UTC)

Added English Template Toolkit example
Hello, I added a English Template Toolkit example, check out!

[% GET "Hello world!"; %]

Thanks! MihaiBooks101 (discuss • contribs) 11:17, 26 December 2022 (UTC)

Added a "@" Batch example
Hello! I just added a "@" Batch example, check it out!

@echo Hello World! pause exit

Thanks! MihaiBooks101 (discuss • contribs) 11:30, 26 December 2022 (UTC)