home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / folklore / computer / 16329 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.2 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!rutgers!news.columbia.edu!watsun.cc.columbia.edu!lasner
  2. From: lasner@watsun.cc.columbia.edu (Charles Lasner)
  3. Newsgroups: alt.folklore.computers
  4. Subject: Re: command abbreviation
  5. Message-ID: <1992Nov17.043913.14428@news.columbia.edu>
  6. Date: 17 Nov 92 04:39:13 GMT
  7. References: <1992Nov13.190208.17876@cubic.com> <OKES.92Nov16125818@SunLab40.essex.ac.uk>
  8. Sender: usenet@news.columbia.edu (The Network News)
  9. Reply-To: lasner@watsun.cc.columbia.edu (Charles Lasner)
  10. Organization: Columbia University
  11. Lines: 42
  12. Nntp-Posting-Host: watsun.cc.columbia.edu
  13.  
  14. In article <OKES.92Nov16125818@SunLab40.essex.ac.uk> okes@essex.ac.uk (Simon Oke) writes:
  15. >In article <1992Nov13.190208.17876@cubic.com> hees@cubic.com (Phil Hees) writes:
  16. >| In addition, the standard C library routines use the same ordering.
  17. >| For example:
  18. >|
  19. >|       strcpy(dest, source);
  20. >|
  21. >Blurgh! This is one of the things about the libraries that I *HATE*.
  22. >I find it much easier to remember "copy src (to) dest" than the other way.
  23. >Makes programming a 68000 fun.
  24.  
  25. Bully for you.
  26.  
  27. >
  28. >| I always use the (dest [,dest], src [,src]) ordering for my own function
  29. >| calls, and really get locked into this mindset, to the point that I often
  30. >| find myself checking the man page to reassure myself that I am using the
  31. >| correct order for the cp (Unix) or copy (VMS, DOS) commands.
  32. >|
  33. >You are seriously deranged!
  34.  
  35. No, you are.  Let him use whatever way he can consistently remember.  I
  36. could take you to task on the notion that just because you like copy
  37. commands that go source -> destination doesn't make it "right" for any
  38. other usage.
  39.  
  40. I started on systems that go the other way, such as TOPS10.  I seldom had to
  41. copy files, so that incidental usage was implemented consistently with the
  42. rest of the command structure, which seemed fine at the time going as
  43. destination <- source.
  44.  
  45. More recently I wrote my own proprietary system for the PDP-8 (with the
  46. help of others) and made all relevant commands go both ways.  You have to
  47. use either < or > to make it clear which way you are using, unless there
  48. is no destination in the command.  Thus, a typical assembly might look like:
  49.  
  50. PAL BIN<SRC    or
  51. PAL SRC>BIN
  52.  
  53. Take your pick of what makes sense to you.
  54.  
  55. cjl
  56.