Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Links Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS SQL
Oracle
DB2
MS Access
MySQL
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» Sitemap
Free Newsletters:
DatabaseDaily  
News Via RSS Feed


follow us on Twitter
Database Journal |DBA Support |SQLCourse |SQLCourse2
 

Featured Database Articles

MS SQL

Posted Apr 16, 2001

The Lighter Side - Page 5

By Steve Jones

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[i]);
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[size + 1];
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[size + 1];
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



MS SQL Archives

Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 




Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM