home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / realprog / rlprgpas.txt
Text File  |  1991-03-03  |  17KB  |  291 lines

  1.  
  2.  ---------------------------------------
  3.  - Real Programmers Don't Write Pascal -
  4.  ---------------------------------------
  5.  
  6. .    Back in the good old days - the "Golden Era" of computers, it was easy to
  7. separate the real men from the boys (sometimes called "Real Men" and the
  8. "Quiche Eaters" in the literature). During this period, the Real Men were the
  9. ones that understood computer programming and the Quiche Eaters were the ones
  10. that didn't. A real computer programmer said things like:
  11.  
  12.  DO 10 I = 1, 10 and:
  13.  ABEND
  14.  
  15. .    They talked in capital letters, you understand. The rest of the world said
  16. things like, "computers are too complicated for me" and, "I can't relate to
  17. computers - they're so impersonal". A previous work (1) points out that Real
  18. Men don't relate to anything, and aren't afraid of being impersonal. But, as
  19. usual, times chance. We are faced today with a world in which little old ladies
  20. can get computers in their microwave ovens, 12-year old kids can blow Real Men
  21. out of the water playing Asteroids and Pac-Man, and anyone can buy and
  22. understand their very own personal computer. The Real Programmer is in danger
  23. of becoming extinct, of being replaced by high school students with Commodores
  24. and Ataris (edited for taste). There is a clear need to point out the
  25. differences between the typical high-school junior Pac-Man player and the Real
  26. Programmer. If this difference is made clear, it will give these kids something
  27. to aspire to - a role model, a Father Figure. It will also help to explain to
  28. the employer of Real Programmers why it would be a mistake to replace the Real
  29. Programmers on their staff with 12-year old Pac-Man players (at a very
  30. considerable savings).
  31.  
  32. 1.1 Languages
  33.  
  34. .    The easiest way to tell a Real Programmer from the crowd is by the
  35. programming language he or she uses. Real Programmers use Fortran. Quiche
  36. Eaters use Pascal. Nicklaus Wirth, the designer of Pascal, gave a talk once at
  37. which he was asked, "How do you pronounce your name?" He replied, "You can call
  38. me by my name, pronouncing it 'Veert', or you can call me by my value, 'Worth'
  39. ". One can immediately tell from this comment that Nicklaus Wirth is a Quiche
  40. Eater. The only parameter passing mechanism that Real Programmers endorse is
  41. "call by value - return", as implimented in the IBM/370 FORTRAN G and H
  42. compilers. Real Programmers don't need all those abstract concepts to get their
  43. jobs done, they are perfectly happy with a keypunch, a FORTRAN IV compiler, and
  44. a beer.
  45.  
  46.  Real Programmers do List Processing in FORTRAN.
  47.  
  48.  Real Programmers do String Manipulation in FORTRAN.
  49.  
  50.  Real Programmers do Accounting (if they do it at all) in FORTRAN.
  51.  
  52.  Real Programmers do Artificial Intellegence programs in FORTRAN. If you can't
  53. do it in FORTRAN, do it in Assembly Language, or its not worth doing.
  54.  
  55. 1.2 Structured Programming
  56.  
  57. .    The academics in computer science have gotten into the "Structured
  58. Programming" rut over the past several years. They claim that programs are more
  59. clearly understood if the programmer uses some special language constructs, of
  60. course, and examples they use to show their point of view invariably fit on a
  61. single page of some obscure journal or another - clearly not enough of an
  62. example to convince anyone. When I got out of school, I thought I was the best
  63. programmer in the world. I could write an unbeatable tic-tac-toe program, use
  64. five different computer languages, and create 1000 line programs that WORKED
  65. (really)!! Then I got out into the Real World. My first task was to read and
  66. understand a 20,000 line FORTRAN program, then speed it up by a factor of two.
  67. Any Real Programmer will tell you that all the Structured Coding in the world
  68. will not help you solve a problem like that - it takes actual talent. Some
  69. quick observations on Real Programmers and Structured Programming:
  70.  
  71.  Real Programmers aren't afraid to use GOTO's.
  72.  
  73.  Real Programmers can write five-page long DO loops without getting confused.
  74.  
  75.  Real Programmers like arithmetic IF statements - they make the code more
  76. interesting.
  77.  
  78.  Real Programmers write self-modifying code, especially if they can save 20
  79. nanoseconds in the middle of a tight loop.
  80.  
  81.  Real Programmers don't need comments - the code is obvious. Since FORTRAN
  82. doesn't have structured IF, REPEAT... UNTIL, or CASE statements,
  83.  
  84.  Real Programmers don't have to worry about not using them. Besides, all those
  85. structures can be simulated, when necessary, by using assigned GOTO's.
  86.  
  87. .    Data structures have also gotten alot of press lately. Abstract Data
  88. Types, Structures, Pointers, Lists, and Strings have become quite proular in
  89. certain circles. Nicklaus Wirth (the aformentioned Quiche Eater) actually
  90. managed to write an entire book (2) contending that you could write a program
  91. based on Data Structures instead of the other way around. As all Real
  92. Programmers know, the only useful data structure is the ARRAY. Strings, Lists,
  93. Structures, Sets - they are all just special cases of Arrays and can be treated
  94. that way just as easily without messing up your programming language with all
  95. sorts of complications. The worst thing about fancy data types is that you have
  96. to declare them, and all Real Programming Languages, as we all know, have
  97. implicit typing based on the first letter of the (six character) variable name.
  98.  
  99. 1.3 Operating Systems
  100.  
  101. .    What kind of operating system does the Real Programmer use? CP/M? God
  102. forbid - CP/M, after all, is basically a toy operating system. Even little old
  103. ladies and grade school students can use and understand CP/M. UNIX is a lot
  104. more complicated of course - the typical UNIX hacker never can remember what
  105. the print command is called this week. When it gets right down to it, UNIX is a
  106. glorified video game. People don't do serious work on UNIX systems - they send
  107. jokes around the world on a UUCP-net, and write advanture games and research
  108. papers. No, your Real Programmer uses OS/370. A good programmer can find and
  109. understand the description of an IJK3051 error message he just got in the JCL
  110. Manual. A great programmer can write JCL without referrig to the JCL manual at
  111. all. A truly outstanding programmer can find bugs buried in a six-Megabyte core
  112. dump without using a hex calculator. OS/370 is a truly remarkable operating
  113. system. It's possible to destory days of work with a single misplaced space (it
  114. happens to the best of us), so alertness in the programming staff is
  115. encouraged. The best way to approach the system is through a k eypunch. Some
  116. people claim that there is a Time Sharing system that runs on OS/370, but after
  117. a careful study I have come to the conclusion that they were mistaken.
  118.  
  119. References:
  120.  
  121.  (1) Fierstein, B., Real Men Don't Eat Quiche, New York, Pocket Books, 1982
  122.  (2) Wirth, N., Algorithms+Data Structures=Programs, Prentice Hall, 1976
  123.  
  124.  
  125. 1.4 Programming Tools
  126.  
  127. .    What kinds of tools does a real programmer use? In Theorey, a real
  128. programmer could run his programs by keying them into the front panel of a
  129. computer. Back in the days when computers had front panels, this was actually
  130. done occaisionally. Your typical real programmer knew the entire bootstrap
  131. loader by memory in hex, and toggled it in whenever his program destroyed the
  132. bootsrtap. Back then, memory was memory - it didn't go away when the power went
  133. off. Today, memory either forgets things when you don't want it to, or
  134. remembers things long after they're best forgotton. Legend has it that Seymour
  135. Cray (who invented the Cray-1 supercomputer, and most of Control Data's
  136. computers) actually toggled the first operating system for the CDC-7600 in on
  137. the front panel from memory when it was first powered on. Seymour, needless to
  138. say, is a real programmer.
  139.  
  140. .    One of my favorite real programmers was a systems programmer at Texas
  141. Instruments. One day, he got a long distance call from a user whose system had
  142. crashed in the middle of saving some important work. Jim was able to repair the
  143. damage over the telephone, getting the user to toggle the disk I/O instructions
  144. at the front panel, repairing the system tables in hex, reading register
  145. contents back over the telephone. The moral of the story: while a real
  146. programmer usually includes a keypunch and lineprinter in his toolkit, he can
  147. get along with just a front panel and a telephone in emergencies.
  148.  
  149. .    In some companies, text editing no longer consists of ten engineers
  150. standing in line to use an 029 keypunch. In fact, the building I work in
  151. doesn't have a single keypunch. The real programmer in this situation has to
  152. work with a text editor program. Most systems supply several text editors to
  153. select from, and the real programmer must be careful to pick the one that
  154. reflects his personal style. Many people believe that the best text editors in
  155. the world were written at Xerox Palo Alto Research Center for use on their Alto
  156. and Dorado computers (3). Unfortunately, no real programmer would use a
  157. computer whose operating system is called SmallTalk, and would certainly never
  158. talk to a computer with a mouse.
  159.  
  160. .    Some of the concepts in these Xerox editors have been incorporated into
  161. editors running on more reasonable systems - EMACS and VI being two. The
  162. problem with these editors is that real programmers consider "what you see is
  163. what you get" is just as bad as the concept in text editing as it is in women.
  164. No, the real programmer wants a "you asked for it, you got it" text editor -
  165. complicated, cryptic, powerful, unforgiving, and dangerous. TECO to be precise.
  166.  
  167. .    It has been observed that a TECO command sequence more closely resembles
  168. transmission-line noise than readable text (4). One of the more entertaining
  169. games to play with TECO is to type your name in as a command line and try to
  170. guess what it does. Just about any possible typing error while talking with
  171. TECO will probably destroy your program, or even worse, introduce subtle and
  172. mysterious bugs into a once working subroutine.
  173.  
  174. .    For this reason, real programmers are reluctant to actually edit a program
  175. that is close to working. They find it mush easier to just patch the binary
  176. object code directly, using a wonderful program called SUPERZAP. This works so
  177. well that many working programs on IBM systems bear no relation to the original
  178. Fortran code. In many cases the original source code is no longer available.
  179. When it comes time to fix a program like this, no manager would even think of
  180. sending anyone less than a real programmer to do the job - No Quiche Eating
  181. Structured Programmer would even know where to start. This is called Job
  182. Security.
  183.  
  184. .    Here are some programming tools that real progrmmers don't use:
  185.  
  186. .    FORTRAN preprocessors like MORTRAN and RATFOR. These are cui-sinarts of
  187. programming - great for making quiche. See comments above on structured
  188. programming.
  189.  
  190. .    Source Language Debuggers. Real Programmers can read   core dumps.
  191.  
  192. .    Compilers with array bounds checking. They stifle     creativity, destory
  193. most of the interesting uses for the EQUIVALENCE statement, and make it
  194. impossible to modify the operating system with negative subscripts. Worst of
  195. all, bounds checking is inefficient.
  196.  
  197. .    Source code maintennance systems. A real programmer keeps the code locked
  198. up in a card file, because it implies that the owner cannot leave important
  199. programs unguarded (5).
  200.  
  201.  (3) Xerox PARC Editors...
  202.  (4) Finseth, C. Theorey and Practice of Text Editors - or A Cookbook for an
  203. EMACS, B.S. Thesis, MIT/LCS/TM-165, Massachusetts Institute of Technology, May
  204. 1980.
  205.  (5) Weinberg, G. The Psychology of Computer Programming, New York, Van
  206. Nostrand Reinhold, 1971, p. 110.
  207.                                                             5 The real
  208. programmer at work.
  209.  
  210. .    Where does the typical real programmer work? What kind of programs are
  211. worthy of the efforts of so talented an individual? You can be sure that no
  212. real programmer would be caught dead writing accounts-receivable programs in
  213. COBOL, or sorting mailing lists for People magazine. A real programmer wants
  214. tasks of earth-shaking importance (literally!).
  215.  
  216. .    Real Programmers work for Los Alamos National Laboratory writing atomic
  217. bomb simulations to run on CRAY-1 supercomputers. Real Programmers work for the
  218. National Security Agency, decoding Russian transmissions.
  219.  
  220. .    It was largely due to the efforts of thousands of Real Programmers working
  221. for NASA that our boys got to the moon before the Russkies. Real Programmers
  222. are at work for Boeing, designing operating systems for cruise missiles.
  223.  
  224. .    Some of the most awesome Real Programmers of all work at the Jet
  225. Propulsion Laboratory in California. Many of them know the entire operating
  226. system of the Pioneer and Voyager Spacecrafts by heart. With the combination of
  227. large groundbased FORTRAN programs and small spacecraft-based assembly language
  228. programs, they are able to do incredible feats of navagation and improvision -
  229. hitting ten kilometer wide windows at Saturn after six years in space,
  230. repairing or bypassing damaged sensor platforms, radios and batteries.
  231. Allegedly, one real programmer managed to tuck a pattern-matching program into
  232. a few hundred bytes of unused memory in a Voyager spacecraft that searched for,
  233. located, and photographed a new moon of Jupiter. The current plans for the Gali
  234. leo spacecraft is to use a gravity assist trajectory past Mars on the way to
  235. Jupiter. This trajectory passes 80 (plus or minus 3) kilometers from the
  236. surface of Mars. Nobody is going to trust a pascal program (or a pascal
  237. programmer for that matter) for navagatin to these tolerances. As you can tell,
  238. many of the world's real programmers work for the US Government - mainly in the
  239. defense department. This is as it should be. Recently, however, a black cloud
  240. has formed on the real programmers horizon, It seems that some highly placed
  241. quiche eaters at the defense department decided that all defense programs
  242. should be written in some grand unified language called ADA. For a while it
  243. seemed that ADA was destined to become a language which went against all the p
  244. recepts of real programming - a language with structure, a language with data
  245. types, strong typing, and semicolons. In short a language designed to cripple
  246. the creativity of the typical real programmer. Fortunately, the language which
  247. they Do  adopted has enough features to make it approachable. Its incredibly
  248. complex, includes methods for messing up the operating system and rearranging
  249. memory, and Edsger Dijkstra doesn't like it (6). Dijkstra, as I'm sure you
  250. know, was the author of "the Go To considered harmful" - a landmark in
  251. programming methodology, applauded by Pascal programmers and quiche eaters
  252. alike. Besides, any determined real programmer can write FORTRAN programs in
  253. any language.
  254.  
  255. .   Real Programmers might compromise their principles and work on something
  256. slightly more trivial than the destruction as life as we know it, providing
  257. there's enough money in it. There are several real programmers writing video
  258. games at Atari, for example (but not playing them - a real programmer knows how
  259. to beat them every time - no challenge in that). Everybody at LucasFilm is a
  260. real programmer (it would be crazy to turn down the money of fifty million Star
  261. Trek fans). The proportion of real programmers in computer graphics is slightly
  262. lower than the norm, mainly because nobody has found a use for computer
  263. graphics yet. On the other hand, all computer graphics programming os done in
  264. FORTRAN, so there are a fair number of people doing graphics in order to avoid
  265. writing COBOL programs.
  266.  
  267. 1.6 The Real Programmer at Play
  268.  
  269. .    Generally, the real programmer plays the same way he works - with
  270. computers. The real progrmmer is constantly amazed that his employer pays him
  271. for what he would be doing anyway (although he is careful not to express this
  272. opinion out loud). Occaisionally, a real progrmmer does step out of the office
  273. for a breath of fresh air and a beer or two. Some tips on recognizing real
  274. programmers away from the computer room:
  275.  
  276. .    At a party, the real programmers are the ones in the corner talking about
  277. computer security and how to get around it.
  278.  
  279. .    At a football game, the real programmer is the one comparing the plays
  280. against the simulation printed on 11 by 14 fanfold paper.
  281.  
  282. .    At the beach, the real programmer is the one drawing flowcharts in the
  283. sand.
  284.  
  285. .    At the funeral, the real programmer is the one saying "Poor George. And he
  286. almost had his sort routine working before his coronary."
  287.  
  288. .    In the grocery store, the real progrmmer is the one who insists on running
  289. the cans past the laser checkout scanner himself, because he never could trust
  290. keypunch operators to get it right the first time.
  291.