Friday, February 22nd, 2008

Hello World: yesterday, today and tomorrow

Category: Fun

Vlad Shamgin sent in this little history on “Hello World” on the Web.

1998

  1. <font><b>Hello World</b></font>

2000

javascript

  1. var myText = "Hello World";
  2. var _textNodeParent;
  3. var docNodes = document.childNodes[1].lastChild.childNodes;
  4. for(var j=0; j&lt;document .childNodes.length; j++){
  5.   if(document.childNodes[j].lastChild){
  6.     for(var i=0; i&lt;docNodes.length; i++){
  7.       if('div' == docNodes.item(i).nodeName.toLowerCase()){
  8.         if('layer_main' == docNodes.item(i).id.toLowerCase()){
  9.           if (null != document.getElementById('bparent')) {              document.getElementById('bparent').parentNode.removeChild(document.getElementById('bparent'));
  10.           }
  11.           _textNodeParent = document.createElementNS("http://www.w3.org/1999/xhtml", "html:b");
  12.           _textNodeParent.id = 'bparent';                  
  13.           docNodes.item(i).appendChild(_textNodeParent);
  14.           _textNodeParent.appendChild(document.createTextNode(myText));
  15.         }
  16.       }
  17.     }
  18.   }
  19. }

2003

javascript

  1. var myText = "<b>Hello World</b>";
  2. document.getElementById('layer_main').innerHTML = myText;

2008

javascript

  1. myVp = new Ext.Viewport({
  2.   layout:'fit',
  3.   autoHeight:true,
  4.   id:'myVPid',
  5.   items:[
  6.     new Ext.XTemplate('<tpl>',
  7.         '<span id="bparent" style="width:100%;font-weight:bold">{text1}{text2}{text3}</span>',
  8.         '</tpl>').overwrite(Ext.get('layer_main'),{text1:'Hello',text2:'&nbsp;',text3:'World'})
  9.   ]
  10. });

What will 2010 be?

Posted by Dion Almaer at 6:30 am
20 Comments

++---
2.5 rating from 78 votes

20 Comments »

Comments feed TrackBack URI

i still prefer 2007’s

$(document).append(“Hello World!”);

though the 1998’s version is still the simpliest ;-)

Comment by OndraM — February 22, 2008

The font tag messed up the page… pretty damn professional.

Comment by deadcabbit — February 22, 2008

1997:
document.write( “Hello World!” );

Comment by Mathieu \'p01\' Henri — February 22, 2008

2010:
“Hello World!”

back to simplicity

Comment by urandom — February 22, 2008

2010:
JS:
var webservice = new Ext.SoapClient();
var web3Mashup = webservice.lookUpService(‘HelloWorld’);
web3Mashup.invokeService(‘document.write’);

Comment by phroggar — February 22, 2008

2010:

Me
Hello World

Comment by JimNeath — February 22, 2008

2010:

Me
Hello World!

Comment by JimNeath — February 22, 2008

Isn’t it a little early to call it a slow news day?

Comment by AndrewHerron — February 22, 2008

(fill in characters as required)

if compliant {
Hello World
}
else if IE6 {
Hello World
}
else if IE7 {
Hello World
}
else if IE8 {
Hello World
}
else if IE9 {
Hello World
}

Comment by FrankThuerigen — February 22, 2008

@Frank
Hahahahahahahahaha…!!
ROFLMAO :))))

Comment by polterguy — February 22, 2008

Ya, good job Frank, I like that one too :)

Comment by MadeByChad — February 22, 2008

When has anyone ever used font tags without attributes?

Comment by Trevor — February 22, 2008

Frank:

good one :)

Comment by contactnaveen — February 22, 2008

So where does my notation fit?

toolKit.addEvent(“load”,function(evt){
document.body.appendChild(
([“div”,{id:”msg”,style:”font-weight:bold;”},[
“Hello World”
]]).toHTML()
);
}

Comment by Hans Schmucker — February 23, 2008

Hello, world

Comment by JChung2008 — February 23, 2008

not 2010 but maybe 2015 sound and voice can be inportant, I hope…
becouse there are millions of blindless people who want to use computer… So we must do sth. for them.

code of “hello word” sound
//*Start Code*//
sound=sndcrd[boolean];
$auto_detect[IRQ=handle1{sndcrd:type=boolean}; var=true];
if (sound == enable)
{
#Voice=”alto”;
say:”Hello World”;
}
else if (sound =! disable)
{
beep=3times; //*beeping isnt depend on sound card*//
print(“pease turn on your sound or activate it”); //*monitor this at the same time*//
}
end if
autoreload;
//*End of Code*//

Comment by SirPavlow — February 23, 2008

hello world

Comment by blankyao — February 25, 2008

@Frank lol

Comment by kcisoul — February 25, 2008

2010:
Hello World

Because of always pushing usability standards to the limit the users got so stupid they don’t know to start their browser. We had to go back to HTML 3.2 ;)

Comment by Adrian — February 25, 2008

Well, the proper words for 2010 may would be:

Goodbye World!

Comment by Thasmo — February 25, 2008

Leave a comment

You must be logged in to post a comment.