[453] in Humor
HUMOR: Evolution of a Programmer
daemon@ATHENA.MIT.EDU (abennett@MIT.EDU)
Wed Sep 14 14:56:34 1994
From: abennett@MIT.EDU
To: humor@MIT.EDU
Date: Wed, 14 Sep 94 14:51:38 EDT
Date: Wed, 14 Sep 1994 12:27:21 -0600 (MDT)
From: Espacionaute Spiff domine! <MATOSSIAN%ARIES@VAXF.Colorado.EDU>
...
Forwarded-by: dsayon@Corp.Megatest.COM (Doris Sayon)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The Evolution of a programmer:
High School/Jr. High
----------------------
10 PRINT "HELLO WORLD"
20 END
First year in college
-----------------------
program Hello(input, output);
begin
writeln ('Hello world');
end
Senior year in college
-----------------------
(defun hello
(print
(cons 'HELLO (list 'WORLD))))
New professional
-----------------------
#include <stdio.h>
main (argc,argv)
int argc;
char **argv; {
printf ("Hello World!\n");
}
Seasoned pro
-----------------------
#include <stream.h>
const int MAXLEN = 80;
class outstring;
class outstring {
private:
int size;
char str[MAXLEN];
public:
outstring() { size=0; }
~outstring() {size=0;}
void print();
void assign(char *chrs);
};
void outstring::print() {
int i;
for (i=0 ; i< size ; i++)
cout << str[i];
cout << "\n";
}
void outstring::assign(char *chrs) {
int i;
for (i=0; chrs[i] != '\0';i++)
str[i] = chrs[i];
size=i;
}
main (int argc, char **argv) {
outstring string;
string.assign("Hello World!");
string.print();
}
Manager
-----------------------
/* George, I need a program to output a string "Hello World!" */