Talk:Hello world/Text: Difference between revisions

→‎Hello World: More about --~~~~
(→‎Hello World: More about --~~~~)
 
(12 intermediate revisions by 6 users not shown)
Line 1:
==incomplete programs==
Some examples lack some parts of the code. e.g. the Java example is not a complete program.
: It's not uncommon for RC tasks to exclude code that represents the program surrounding the code. This helps make it obvious what code is specific to the task at hand. If you need to see what the surrounding code looks like, see [[Empty Program]]. --[[User:Short Circuit|Short Circuit]] 02:31, 21 November 2008 (UTC)
Line 22 ⟶ 23:
::::: Yes, I would like to see the output of the '''Chef''' example, for one. I would also like to know if any languages '''don't''' support lowercase, or for that matter, "special" characters like the exclamation point ['''!''']. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:03, 1 November 2012 (UTC)
 
::::: I don't feel that his task is silly, brief and simplistic as it is. In any case, if amyoneanyone has questions about any possible incorrect flags that I did, please raise them here. I based my flagging ('''incorrect output''') if the first word is '''Hello''' instead of '''Goodbye''', and/or no comma (followed by a space), '''world''' instead of '''World''', and/or no trailing exclamation point ['''!''']. Also, the case of the words must be (only) the first letter capitalized. In other words, it must be ''exactly'': '''Goodbye, World!''' ------- Whatever the error(s), they'll be simple to fix. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:00, 1 November 2012 (UTC)
 
::::: What if they're not simple to fix, or even possible? I don't think a language should be excluded from this page - the canonical simplest task ever for any programming language - just because they don't have the ability to output the exact string chosen by the creator of the task. This should be the one task on RosettaCode that has an entry for almost every language on the site; only those that completely lack text output should be excluded. But Applesoft BASIC doesn't have lowercase, HQ9+ can output "Hello world" but not "Goodbye, World!" ... [[User:Markjreed|Markjreed]] 05:26, 30 January 2013 (UTC)
 
:::::: I was re-reading several definitions of computer languages (also, programming languages), and it appears that HQ9+ doesn't meet the requirements, but I certainly won't be the one to exclude it.   To me, it's more of an ''application'' than a language: enter ''xxx'' parameter, and out pops a specific string(s). -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:49, 16 March 2013 (UTC)
 
::::: It is probably just easiest to change the text description to read "a greeting such as Goodbye World!", rather than "the string Goodbye World!". This will not have any impact on the existing provided solutions, and solves the problem of having incorrect flags. [[User:Markhobley|Markhobley]] 13:49, 24 February 2013 (UTC)
 
:::::: Even discussing the (text) greeting is misquoted. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:49, 16 March 2013 (UTC)
 
:::::: The easiest thing would be to remove all incorrect tags (everywhere).   That way, no changes (corrections) would have to be made.   Incorrect programs?   Just change the task requirements.   Can't produce a list of primes?   Just use Fibonacci numbers instead.   But seriously, if a language can't meet the requirements, I see no reason why it can't just say that (and why), and use a best-effort example (with notation).   If examples start using any (salutation) string they wish, it doesn't make for good comparisons.   How would most people know that lowercase letters aren't allowed in a language, or that some specific punctuation characters are not supported?   Using non-Latin characters would also be problematic. Having a common set of punctuation helps also. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:49, 16 March 2013 (UTC)
 
: I just noticed that in [http://www.rosettacode.org/mw/index.php?title=Hello_world%2FText&type=revision&diff=211993&oldid=211728 September of last year] someone took it upon themselves to make "Hello world!" the required output string for this task, and attempted to update all of the existing solutions to match. However, since this was mostly done as a find-and-replace, there are a number of languages that have not been updated (Befunge, Brainf***, Chef, etc.), and a number of others are now broken because the updated text uses mixed case which their language doesn't support (e.g. ALGOL 60 and Applesoft BASIC). There are also several places where comments, classes or variable names still refer to the original "Goodbye World" text, and now no longer make any sense.
 
: Since this occurred some time ago, and there have been several new additions to the page since the task description changed, simply reverting the original examples to what they were before is not really a solution. Either way you still end up with a page that is a messed up mix of both "Hello world" and "Goodbye World". And updating the new entries doesn't look particularly easy either, so that's not something I would want to attempt myself. For now I'm just noting the problem, but leaving things as they are. Hopefully someone more senior than me can suggest what should be done to fix this (if anything). --[[User:J4 james|j4_james]] ([[User talk:J4 james|talk]]) 22:55, 20 May 2016 (UTC)
 
ARM Assembly: I recently added an extra entry. Someone else reclassified my entry without any discussion with me. As my entry is actually an ARM Assembly example, I have reinstated it to that heading. Is there a site protocol about not changing other peoples entries? Especially as there is already this opportunity for a discussion. It just does not seem to be polite to make changes to other peoples work without asking first.
 
:Hi BlueWren, a few points
::*Each Task page should only have one <nowiki>=={{header|language}}==</nowiki> header for each specific language. Under that header there can be any number (within reason) of samples for that language. Each sample for a specific language need not and should not have its own <nowiki>=={{header|language}}==</nowiki> header. If you check the page's history, you will see the comment for the edit to your contribution says that.
::*On the page [[Rosetta_Code:Policy]], you will find (in the current version) '''You do not have the right to have nobody ever edit your contributions; this is a wiki''' (IIRC, previous versions of the page put it more bluntly...). The contents of the task pages and other pages are frequently edited by people other than the original authors.
::*When posting on the talk pages, please sign your posts - you can do that by adding <nowiki>--~~~~</nowiki>.
:I have removed your duplicate ARM Assembly header and replaced it with "alternative versions", you are of course, free to replace that with something more to your liking but please don't put back the duplicate <nowiki>=={{header|ARM Assembly}}==</nowiki> header.
:--[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 19:10, 6 October 2023 (UTC)
 
Thankyou I had asked for assistance and received it. I had very much wanted to sign my post but I could not find how to do that. You have given me the required method so I will use what you have given me. You and I were making the required changes at the same time and overlapped. When another user makes a change that is wrong that is not furthering knowledge. <nowiki>--~~~~</nowiki>
 
I used the method you told me to use to sign my post. It has not worked.
 
:When I posted the above, I used nowiki tags to stop the headers and hyphen hyphen tilde tilde tilde tilde being interpreted - to use <nowiki>--~~~~</nowiki> to sign your post, you need to omit the nowiki tags. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 01:02, 7 October 2023 (UTC)
 
== Audible Hello World? ==
Line 41 ⟶ 69:
 
Oops - indeed a "programming laguage" surprise surprise --[[User:Walterpachl|Walterpachl]] 12:45, 26 January 2013 (UTC)
 
==Is there a page with the REAL Hello, World! programs?==
 
why?
3,021

edits