SQLServerCentral Article

Hello World

,

Hello, World  



Warning: Nerd Joke!

The evolution of the famous HELLO WORLD in the programer's life

Secondary School

10 PRINT "HELLO WORLD"
20

END


First year in the university

program Hello(input,

output)
begin
  writeln('Hello World')
end.


Last year in the university

(defun hello
(print
(cons

'Hello (list 'World))))


Beginner professional programer

#include

<stdio.h>
void main(void)
{ char *message[] = {"Hello ",

"World"};
  int i;
  for(i = 0; i< 2; ++i)
  printf("%s",

message);
  printf("\n");
}


Professional programer

#include <iostream.h>
#include

<string.h>

class string
{
private:
int size;
char

*ptr;

public:
string() : size(0), ptr(new char('\0'))

{}

string(const string &s) : size(s.size)
{
  ptr = new

char;
  strcpy(ptr, s.ptr);
}

~string()
{
  delete

[] ptr;
}

friend ostream &operator <<(ostream &, const

string &);
  string &operator=(const char *);
};

ostream

&operator<<(ostream &stream, const string

&s)
{
  return(stream << s.ptr);
}

string

&string::operator=(const char *chrs)
{
  if (this !=

&chrs)
  {
    delete [] ptr;
    size = strlen(chrs);
    ptr =

new char;
    strcpy(ptr,

chrs);
  }
  return(*this);
}

int main()
{
  string

str;

  str = "Hello World";
  cout << str <<

endl;

  return(0);
}



Very very professional

programer


[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library

LHello
{
// bring in the master

library
importlib("actimp.tlb");
importlib("actexp.tlb");

// bring

in my interfaces
#include

"pshlo.idl"

[
uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
]
cotype

THello
{
  interface IHello;
  interface

IPersistFile;
};
};

[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module

CHelloLib
{

// some code related header

files
importheader(


Beginner hacker

#!/usr/local/bin/perl
$msg="Hello,

world.\n";
if ($#ARGV = 0) {
while(defined($arg=shift(@ARGV)))

{
$outfilename = $arg;
open(FILE, "" . $outfilename) == die "Can't write

$arg: =$!\n";
print (FILE $msg);
close(FILE) == die "Can't close $arg:

$!\n";
}
} else {
print ($msg);
}
1;


Experienced hacker

#include


More experienced hacker

% cc -o a.out ~/src/misc/hw/hw.c
%

a.out


Profession hacker

% cat
Hello, world.
^D


Newly appointed manager

10 PRINT "HELLO WORLD"
20

END


Middle-level manager

mail -s "Hello, world." bob@b12
Bob,

can you write a program for me until tomorrow,
that display "Hello word" on

the screen?
Thanks!
^D


Director

% zmail jim
I need a "Hello Word" program today

afternoon.

CEO

% letter
letter: Command not found.

%

mail To: ^X
^F ^C

% help mail
help: Command not found.

%

fuck!
!: Event unrecognized

% logout


Return to Steve Jones Home

 

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating