Talk:Hello world/Text: Difference between revisions

addec comments about a ''complete'' program and possible proglogues. -- ~~~~
(addec comments about a ''complete'' program and possible proglogues. -- ~~~~)
Line 1:
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)
 
:: Sometimes, it's necessary to show the complete program. For instance, say a task is to set a variable to '''2.5''' --- showing the statement '''J = 2.5''' by itself in most languages would probably be wrong as (most?) languages would like/need/require some sort of declaration of the ''type'' of variable it is (and/or other attribute thingys), and that's the sticky wicket part. Just showing the assignment of the variable would do a disservice. I like to see what various languages need for a prologue.-- [[User:Gerard Schildberger|Gerard Schildberger]] 18:14, 11 August 2012 (UTC)
 
== Hello World ==