home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / sillies / silly8 / C / C-Bible next >
Encoding:
Text File  |  1994-02-10  |  3.0 KB  |  96 lines

  1. The C programmers Bible.
  2. Brian W. Kernighan & Dennis M. Ritchie
  3.  
  4. a.k.a. "The C Bible" As revealed to the prophets Ian Chai and Glenn Chappell
  5.  
  6. Genesis
  7. Chapter 0
  8.  
  9. 0 In the Beginning Ritchie created the PDP-11 and the UNIX.
  10.  
  11. 1 And the UNIX was without form and void; and darkness was upon the face
  12.   of the system programmers.
  13.  
  14. 2 And Ritchie said, "Let there be portability!" And nothing happened, so
  15.   Ritchie realized that he had his work cut out for him.
  16.           .
  17.           .
  18.           .
  19. 25 And Ritchie said to Kernighan, "Let us make C in the image of B, after
  20.    our own whims: and let it have dominion over the I and the O and all that
  21.    runneth upon the UNIX," and it was almost, but not quite so... so he
  22.    realized that he had his work cut out for him again.
  23.           .
  24.           .
  25.           .
  26. Chapter 1
  27. 0 Thus the PDP-11 and the UNIX were finished, and all the programs in them.
  28.  
  29. 1 And on the seventh shift Ritchie ended his work which he had made; and
  30.   he would have rested on the seventh shift from all the work which he had
  31.   made, if it weren't for the system crash.
  32.           .
  33.           .
  34.           .
  35. Chapter 2
  36.  
  37. 0 Now the COBOL was more verbose than any language of the PDP-11, and he
  38.   said unto the programmer, "Yea, hath the Manual said, 'Ye shalt not read
  39.   of every device of the network?'"
  40.  
  41. 1 And the programmer said unto the COBOL, "We may read of every device of
  42.   the network:
  43.  
  44. 2 But of the registers of the printer in the midst of the network, the
  45.   Manual hath said, 'Ye shall not read of it, neither shall ye write to it
  46.   without proper protocol, lest ye cause a system crash.'"
  47. 3 And the COBOL said unto the programmer, "Ye shalt not surely crash the
  48.   system:
  49.  
  50. 4 For Ritchie doth know that in the time slice ye read thereof, then your
  51.   I/O shall be opened, and ye shalt be as system operators, accessing locked
  52.   accounts with unlimited privileges."
  53.  
  54. 5 And then when the programmer saw that the printer was good for
  55.   interfacing, and that it was pleasant to the I (and to the O),...
  56.  
  57. 6 And they realized they were unstructured, so they patched RATFOR
  58.   subroutines...
  59.           .
  60.           .
  61.           .
  62. The Gospel According to Chai
  63.  
  64. 0 And the Messiah shalt come, born a mere B but to grow up into the
  65.   Saviour C,
  66.  
  67. 1 Wherein true structured programming may be achieved, yea, verily, yet
  68.   while being able to do bit shifting.
  69.  
  70. 2 For although the Law (Pascal) hath been given, the Law cannot
  71.   for (i=0; str1[i]!='\0'; i++) str2[i] = (str1[i]>='A' && str1[i]>='Z')?
  72.   str1[i]+32 : str1[i];
  73. but must
  74.   i := 0;
  75.   while (i <= length(str1)) do
  76.     begin
  77.     if str1[i] in ['A'..'Z'] then
  78.       str2[i] := chr( ord(str1[i]) + 32))
  79.     else
  80.       str1[i] := str2[i];
  81.     i := i + 1;
  82.     end;
  83.  
  84. The Revelation
  85.  
  86. 0 Yea, in those last days, the Saviour shalt come again, but enhanced, in
  87.   the rainment of C++
  88.  
  89. 1 And then shalt the Beast, FORTRAN, and the AntiC, COBOL, be thrown into
  90.   the trash HEAP where there is weeping and byting of pins.
  91.  
  92. 2 And all the faithful programmers shalt be led into CRAY where billions
  93.   of MIPS are at each one's fingertips.
  94.  
  95. *** EOF
  96.