作者 |
標題 |
|
Captain Picard
我是老鳥
9669 Posts |
Posted - 06/04/2011 : 22:39:36
|
超好笑的:
The C Programming Language Brian W. Kernighan · Dennis M. Ritchie a.k.a. "The C Bible" As revealed to the prophets Ian Chai and Glenn Chappell
Genesis
Chapter 0 0 In the Beginning Ritchie created the PDP-11 and the UNIX. 1 And the UNIX was without form and void; and darkness was upon the face of the system programmers. 2 And Ritchie said, "Let there be portability!" And nothing happened, so Ritchie realized that he had his work cut out for him. . . . 25 And Ritchie said to Kernighan, "Let us make C in the image of B, after our own whims: and let it have dominion over the I and the O and all that runneth upon the UNIX," and it was almost, but not quite so... so he realized that he had his work cut out for him again. . . . Chapter 1 0 Thus the PDP-11 and the UNIX were finished, and all the programs in them. 1 And on the seventh shift Ritchie ended his work which he had made; and he would have rested on the seventh shift from all the work which he had made, if it weren't for the system crash. . . . Chapter 2 0 Now the COBOL was more verbose than any language of the PDP-11, and he said unto the programmer, "Yea, hath the Manual said, 'Ye shalt not read of every device of the network?'" 1 And the programmer said unto the COBOL, "We may read of every device of the network: 2 But of the registers of the printer in the midst of the network, the Manual hath said, 'Ye shall not read of it, neither shall ye write to it without proper protocol, lest ye cause a system crash.'" 3 And the COBOL said unto the programmer, "Ye shalt not surely crash the system: 4 For Ritchie doth know that in the time slice ye read thereof, then your I/O shall be opened, and ye shalt be as system operators, accessing locked accounts with unlimited privileges." 5 And then when the programmer saw that the printer was good for interfacing, and that it was pleasant to the I (and to the O),... 6 And they realized they were unstructured, so they patched RATFOR subroutines... . . . The Gospel 0 And the Messiah shalt come, born a mere B but to grow up into the Saviour C, 1 Wherein true structured programming may be achieved, yea, verily, yet while being able to do bit shifting. 2 For although the Law (Pascal) hath been given, the Law cannot for (i=0; str1[i]!='\0'; i++) str2[i] += (str1[i]>='A' && str1[i]<='Z')? 32 : 0; but must i := 0; while (i <= length(str1)) do begin if str1[i] in ['A'..'Z'] then str2[i] := chr( ord(str1[i]) + 32)) else str1[i] := str2[i]; i := i + 1; end;
The Revelation 0 Yea, in those last days, the Saviour shalt come again, but enhanced, in the rainment of C++ 1 And then shalt the Beast, FORTRAN, and the AntiC, COBOL, be thrown into the trash HEAP where there is weeping and byting of pins. 2 And all the faithful programmers shalt be led into CRAY where billions of MIPS are at each one's fingertips.
=========================
天佑吾「王」! |
|
Fuller
剛剛入門
41 Posts |
Posted - 06/10/2011 : 06:00:21
|
好笑。 但是。。。。我還是改過1970年代就存在的fortran啊。 Revealation騙我。 我也有這本C bible. 還發現有中文版
PDP-11. 真懷念。 現在學電腦的大概不知道那是什麼了吧。 |
|
|
MikeH
路人甲乙丙
USA
4742 Posts |
|
Fuller
剛剛入門
41 Posts |
Posted - 06/11/2011 : 00:39:46
|
quote: Originally posted by MikeH
哇 樓上是前輩 我唸大學時已經跳過FORTRAN 直接學Pascal和C
現在是被剛出學校的小毛頭逼著摸清楚C++0x
=== 地下軍火庫 http://guns-mikeh.blogspot.com/
前輩? 不會吧。 以前還學過其他的語言。 Fortran也是被逼的啦。 誰知道後來工作會遇到1970年代寫的程式。
C++不錯了啦。 C##, PHP, java, ruby, etc. 其實學會一兩個代表作的語言,學的好,學其他語言比學人類語言來的快。 |
|
|
MikeH
路人甲乙丙
USA
4742 Posts |
|
Fuller
剛剛入門
41 Posts |
Posted - 06/11/2011 : 01:29:46
|
quote: Originally posted by MikeH
我自己和第一代高階語言的接觸 嵌入式系統寫assembly不算的話 僅在於將FORTRAN改寫成C
有些同學接y2k案子 一堆金融機構用的靠北語言程式 只好先翻書自學
=== 地下軍火庫 http://guns-mikeh.blogspot.com/
Y2K.... That's when I encountered COBOL >_<
Argh!!!
I hate old cobol, fortran code where I have to worry about how many freaking spaces at the beginning of the line.
I had to write/modify fortran as recently as 200x. Can't help it, fortran has a good library for science calculation, digital fortran was pretty good back then in optmizing code.
I started with basic and assmebly, then learned pascal, then C, fortran, etc. Initially, I had to learn C & C++ because I had to grade those programs as well as helping students with assignment problems >_< |
|
|
|
標題 |
|
|
|