home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3799 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  2.4 KB

  1. Xref: sparky comp.unix.shell:3799 comp.unix.questions:10677
  2. Newsgroups: comp.unix.shell,comp.unix.questions
  3. Path: sparky!uunet!cs.utexas.edu!wupost!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!navarra
  4. From: navarra@casbah.acns.nwu.edu (John Navarra)
  5. Subject: Re: Shell Scripts vs. C programs
  6. Message-ID: <1992Sep3.072033.1112@news.acns.nwu.edu>
  7. Keywords: shell script, C
  8. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  9. Organization: Northwestern University, Evanston Illinois.
  10. References: <1992Aug31.211738.1909@tjhsst.vak12ed.edu> <1992Sep1.175031.3612@unx.ucc.okstate.edu>
  11. Date: Thu, 3 Sep 1992 07:20:33 GMT
  12. Lines: 36
  13.  
  14. In article <1992Sep1.175031.3612@unx.ucc.okstate.edu> martin@datacomm.ucc.okstate.edu (Martin McCormick) writes:
  15. >
  16. >I always thought you should code your program in C because it executes so
  17. >much faster.  Since I am a beginner at C, I always code in shell scripts,
  18. >when possible, but that is mainly because it is easier to read, later.
  19. >I would like to see the answers to this question posted to the group.
  20. >
  21.     I think you will find, Martin, that many times most of the work
  22. you do falls into fairly simple catagories:
  23.  
  24.         1) work aimed at solving an immediate problem
  25.         2) work aimed at solving a recurring problem numerous times
  26.         3) work you have time to sugar-coat.
  27.  
  28. I find that most of the work I do falls into the first two catagories.
  29. In the first, I want a quick fix; I write a quick shell script; I disgard
  30. it later. It would have taken me longer to write the C code. In the 
  31. second, I usually find it much quicker and easier to write and maintain
  32. the shell script even though I may use it many times. When the combined
  33. execution times of the shell script outdistance the time it takes to 
  34. write the equivalent C program , then I might have lost ground. However,
  35. I find that once I have a working solution I am not so inclined to 
  36. rewriting that solution because other problems would be beating on my
  37. door. 
  38.  
  39. That brings us to the last case. And sure, if you have time to sugar-coat,
  40. you probably have a life! (you know: a wife, kid, dog, car, home, credit
  41. rating, etc etc.) Time to live the good life! ;-)
  42.  
  43.  
  44. -tms 
  45. -- 
  46. You can get further with a kind word | You can get further with a kind word
  47. and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
  48.           --al capone                |           -- John Navarra
  49. =======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
  50.