home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / postscri / 5572 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.8 KB

  1. Path: sparky!uunet!ukma!wupost!cs.utexas.edu!asuvax!asuacad!aubxg
  2. Organization: Arizona State University
  3. Date: Tuesday, 17 Nov 1992 13:19:58 MST
  4. From: Ben Goren <AUBXG@ASUACAD.BITNET>
  5. Message-ID: <92322.131958AUBXG@ASUACAD.BITNET>
  6. Newsgroups: comp.lang.postscript
  7. Subject: Re: Who bakes the Best PostScript?
  8. References:  <1992Nov12.153918.12371@usiva.com>
  9. Lines: 25
  10.  
  11. (Sorry I can't quote from the original article--this newsreader is
  12. somewhat primitive....)
  13. As far as the worst PostScript goes, I'd say that Finale (a music
  14. notation program for the Macintosh) has to win the prize hands down.
  15. I'd even go so far as to say that it's the worst programming I've
  16. ever seen, and I'm including my own feeble attemps at BASIC on an
  17. Apple II almost a decade ago.
  18.  
  19. What makes PostScript "good"? I'd say that, first of all, it must
  20. conform to the DSC. Even hand-written code can do this quite nicely,
  21. and it gives a good structure to the program. Beyond that, my personal
  22. preference is for short, highly-tuned code that (hopefully) executes
  23. quickly. Rather than individually draw a hundred squares of varying
  24. shades of gray on the page, as in a color calibration sheet, I'd try
  25. to get the whole thing in a single line with a couple of for loops.
  26.  
  27. I generally don't like to see things repeated in any computer language.
  28. If you can type out the same line, with minor modifications, a dozen
  29. times to get what you want, the computer can probably do the same thing,
  30. but quicker, if you just have it loop. Most machines now have some sort
  31. of instruction or data cache that make such things highly efficient.
  32.  
  33. Of course, all this must be balanced with the realities of the situation.
  34. If I needed to get something done in the next five minutes, I'd probably
  35. use cut-and-paste, and figure the extra interpretation time is worth it.
  36.