Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / The Evolution of a Programmer

Author
Message
D Man
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 30th Mar 2003 13:06
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
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;

for(i = 0; i Release();

// Tell OLE we are going away.
CoUninitialize();

return(0);
}

extern CLSID CLSID_CHello;
extern UUID LIBID_CHelloLib;

CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */
0x2573F891,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820
*/
0x2573F890,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

#include
#include
#include
#include
#include
#include "pshlo.h"
#include "shlo.hxx"
#include "clsid.h"

int _cdecl main(
int argc,
char * argv[]
char * argv[]
) {
HRESULT hRslt;
IHello *pHello;
ULONG ulCnt;
IMoniker * pmk;
WCHAR wcsT[_MAX_PATH];
WCHAR wcsPath[2 * _MAX_PATH];

// get object path
wcsPath[0] = '\0';
wcsT[0] = '\0';
if( argc > 1) {
mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);
wcsupr(wcsPath);
}
else {
fprintf(stderr, "Object path must be specified\n");
return(1);
}

// get print string
if(argc > 2)
mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);
else
wcscpy(wcsT, L"Hello World");

printf("Linking to object %ws\n", wcsPath);
printf("Text String %ws\n", wcsT);

// Initialize the OLE libraries
hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);

if(SUCCEEDED(hRslt)) {

hRslt = CreateFileMoniker(wcsPath, &pmk);
if(SUCCEEDED(hRslt))
hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello);

if(SUCCEEDED(hRslt)) {

// print a string out
pHello->PrintSz(wcsT);

Sleep(2000);
ulCnt = pHello->Release();
}
else
printf("Failure to connect, status: %lx", hRslt);

// Tell OLE we are going away.
CoUninitialize();
}

return(0);
return(0);
}



Apprentice 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
#define S "Hello, World\n"
main(){exit(printf(S) == strlen(S) ? 0 : 1);}



Seasoned Hacker
===================

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



Guru Hacker
===================

% cat
Hello, world.
^D



New Manager
===================

10 PRINT "HELLO WORLD"
20 END



Middle Manager
===================

mail -s "Hello, world." bob@b12
Gill, could you please write me a program that prints "Hello,
world."?
I need it by tomorrow.
^D



Senior Manager
===================

% zmail Gill
I need a "Hello, world." program by this afternoon.



Chief Executive
===================

% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout
"If you can't make it good
make it look good."
Bill Gates
Daz
21
Years of Service
User Offline
Joined: 26th Dec 2002
Location: United Kingdom
Posted: 30th Mar 2003 13:45


DarkBASIC Professional is the best programming utility.
8/10 Housewives agree!
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Mar 2003 14:03
You left out one, after guru hacker

[Seasoned Cracker]
MOV EAX,EBP
CALL DWORD[PTR]
JMP 0044342
MULL EAX,EDX
TEST ECX,EBP
JMP 0099232

Current Project: Retro Compo. Entry.
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 30th Mar 2003 18:46
i started in Jr. School with a pacman game

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
Speedhorn
21
Years of Service
User Offline
Joined: 6th Feb 2003
Location: United Kingdom
Posted: 31st Mar 2003 01:55
someone has too much time on their hands

Ralph, Jesus didn't have wheels.
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 31st Mar 2003 09:39
Ralph, Jebus didn't have wheels.

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.

Login to post a reply

Server time is: 2024-05-09 14:58:36
Your offset time is: 2024-05-09 14:58:36