Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

The Evolution of a Programmer

Name: Anonymous 2008-11-18 20:30

do you agree?

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>
  void main(void)
  {
    char *message[] = {"Hello ", "World"};
    int i;
 
    for(i = 0; i < 2; ++i)
      printf("%s", message[i]);
    printf("\n");
  }

Seasoned professional

  #include <iostream.h>
  #include <string.h>
 
  class string
  {
  private:
    int size;
    char *ptr;
 
  string() : size(0), ptr(new char[1]) { ptr[0] = 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);
  }

Master Programmer

  [
  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(<windows.h>);
      importheader(<ole2.h>);
      importheader(<except.hxx>);
      importheader("pshlo.h");
      importheader("shlo.hxx");
      importheader("mycls.hxx");
 
      // needed typelibs
      importlib("actimp.tlb");
      importlib("actexp.tlb");
      importlib("thlo.tlb");
 
      [
      uuid(2573F891-CFEE-101A-9A9F-00AA00342820),
      aggregatable
      ]
      coclass CHello
   {
   cotype THello;
   };
  };
 
 
  #include "ipfix.hxx"
 
  extern HANDLE hEvent;
 
  class CHello : public CHelloBase
  {
  public:
      IPFIX(CLSID_CHello);
 
      CHello(IUnknown *pUnk);
      ~CHello();
 
      HRESULT  __stdcall PrintSz(LPWSTR pwszString);
 
  private:
      static int cObjRef;
  };
 
 
  #include <windows.h>
  #include <ole2.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include "thlo.h"
  #include "pshlo.h"
  #include "shlo.hxx"
  #include "mycls.hxx"
 
  int CHello::cObjRef = 0;
 
  CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)
  {
      cObjRef++;
      return;
  }
 
  HRESULT  __stdcall  CHello::PrintSz(LPWSTR pwszString)
  {
      printf("%ws
", pwszString);
      return(ResultFromScode(S_OK));
  }
 
 
  CHello::~CHello(void)
  {
 
  // when the object count goes to zero, stop the server
  cObjRef--;
  if( cObjRef == 0 )
      PulseEvent(hEvent);
 
  return;
  }
 
  #include <windows.h>
  #include <ole2.h>
  #include "pshlo.h"
  #include "shlo.hxx"
  #include "mycls.hxx"
 
  HANDLE hEvent;
 
   int _cdecl main(
  int argc,
  char * argv[]
  ) {
  ULONG ulRef;
  DWORD dwRegistration;
  CHelloCF *pCF = new CHelloCF();
 
  hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
 
  // Initialize the OLE libraries
  CoInitializeEx(NULL, COINIT_MULTITHREADED);
 
  CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,
      REGCLS_MULTIPLEUSE, &dwRegistration);
 
  // wait on an event to stop
  WaitForSingleObject(hEvent, INFINITE);
 
  // revoke and release the class object
  CoRevokeClassObject(dwRegistration);
  ulRef = pCF->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 <windows.h>
  #include <ole2.h>
  #include <stdlib.h>
  #include <string.h>
  #include <stdio.h>
  #include "pshlo.h"
  #include "shlo.hxx"
  #include "clsid.h"
 
  int _cdecl main(
  int argc,
  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);
  }

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 <stdio.h>
  #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

  % echo "Hello, world."

New Manager

  10 PRINT "HELLO WORLD"
  20 END

Middle Manager

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

Senior Manager

  % zmail jim
  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

Name: Anonymous 2008-11-18 20:38

This joke was never funny.

Name: Anonymous 2008-11-18 20:50

God
    mov ax, @data
    mov ds, ax
    mov ah, 9
    mov dx, offset Message
    int 0x21
    mov ax, 0x4C00
    int 0x21

    .data
    Message    db 'Hello, World!',0dh,0ah,'$'

Name: Anonymous 2008-11-18 20:54

There are 10 kind of peopel in the world those who understand binary.. and those who don't!!!
ROFL

Name: Anonymous 2008-11-18 20:59

>>1
do you agree?
No.

Name: Anonymous 2008-11-18 21:09

Satori
"Read SICP."

Thread over.

Name: Anonymous 2008-11-18 23:07

>>4
The 10 kinds of people are
- those that understand binary
- those that don't
- those that understand gray code

Name: Anonymous 2008-11-19 1:19

There are 2 kinds of people: those that can extrapolate from incomplete data.

Name: Anonymous 2008-11-19 8:00

OP is a Fuckin' Genius

Name: Anonymous 2008-11-19 8:04

I was writing Haskell when I was in high school. I do not agree with this ``evolution'' you present.

Name: Anonymous 2008-11-19 8:57

>>10
This is because you are a creationist. gb2/church/

Name: Anonymous 2008-11-19 14:26

>>4
There are 11 kind of people in the world those who understand binary, those who don't... and those who are fucking tired of this "joke"

Name: Anonymous 2008-11-19 14:56

>>8
I chuckled.

Name: Anonymous 2008-11-19 14:58

>>7
I see what you did there

Name: Anonymous 2008-11-19 15:24

There are 10 kinds of people:
-those who understand binary
-those who don't
-those who are in a superstate of understanding it and not understanding it

Name: Anonymous 2008-11-19 16:39

>>15
I see what I did there.

Name: Anonymous 2008-11-19 17:23

>>15-16
Fake samefag.

Name: Anonymous 2008-11-19 20:03

>>17
This may be surprise you, but I see what you did there.

Name: Anonymous 2008-11-20 13:27

>>18
This may be surprise you, but I invented the "misspelling 'this may surprise you' as 'this may be surprise you'" meme.

Name: Anonymous 2008-11-20 14:57

>>19
This may be surprise you, but I invented the "point out that there are grammatical errors in a sentence, and that those grammatical errors are not spelling errors in sentences such as 'misspelling "this may surprise you" as "this may be surprise you" meme'" meme.

Name: Anonymous 2008-11-20 15:04

>>20
Shit just got meta.

Name: Anonymous 2008-11-20 15:10

>>20
This may be surprise you, but I invented the "This may be surprise you, but I invented the m meme" meme, where m is a member of memespace.

Name: Anonymous 2008-11-20 15:56

>>3
God wouldn't write his assembly in Intel syntax!

Name: Anonymous 2008-11-20 16:04

>>22
This may be suprise you, but I invented the "This may be surprise you, but I invented the m meme" meme, where m is not a member of memespace.

And so /prog/ imitates Bertrand Russell

Name: Anonymous 2008-11-20 16:35

>>24
And so /prog/ imitates Randall Munroe
corrected

Name: Anonymous 2008-11-21 7:23

>>25
And so RANDALL is up past his bedtime.

Name: Bro 2008-11-21 7:32

>>1
Bro, I lol'ed, bro!

Name: Anonymous 2008-11-21 9:56

>>23
oh but he would.

Name: Anonymous 2010-12-09 2:46

Name: Anonymous 2011-02-04 14:24

Name: Anonymous 2011-07-12 21:48

testing

Name: Anonymous 2012-05-15 17:35

bumpan this thared boecuz its so FunnY

Name: Anonymous 2012-05-15 18:07

MOTHERFUCKING NIGGER! CHECK MY MOTHERNIGGER DUBZZZZZZ!!!!!!!!!!!!!!!!!!!!!!!!!

Name: Anonymous 2012-05-15 18:23

>>NISE DUBVBS BUTT Y U ANGRY

CHILL BRO
ITSJ JUST A RIDE

Name: Anonymous 2012-05-15 18:47

i can only relate to the first half of this OP but i saw the scheme code under senior in college and lol'd

Name: Anonymous 2012-05-15 18:53

I agree completely.

Name: Anonymous 2012-05-15 19:08

I disagree completely.

Name: Anonymous 2012-05-15 19:26

If I knew how to program and wasn't just here to shitpost, this might be kinda funny.

Name: Anonymous 2012-05-15 20:40

I remember a thread where someone would show the ``evolution" of a C programmer, starting from a simple Hello World, then learning about namespace pollution and going back to the first simple Hello World, but I can't find it anywhere.

Name: Anonymous 2012-05-15 20:58

The Lisp is wrong.

Name: Anonymous 2012-05-16 0:10

>>39
check thread one.

Name: Anonymous 2012-05-16 1:26

Master Programmer's indentation style is horrific

Name: Anonymous 2012-05-16 1:59

God tier necromancy of unfunny Usenet memes detected

Name: Anonymous 2012-05-16 5:10

>>43
fuck you faggot

Name: Anonymous 2012-05-16 8:10

>>44
nice dubs heterosexual

Name: Anonymous 2012-05-16 9:00

>>45
Heterosexual?
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Don't change these.
Name: Email:
Entire Thread Thread List