home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / modula3 / 1098 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!asuvax!ncar!vexcel!copper!slate!lpratt
  2. From: lpratt@slate.mines.colorado.edu (Lorien Pratt)
  3. Newsgroups: comp.lang.modula3
  4. Subject: Proper use of interfaces/modules for top-down programming?
  5. Message-ID: <1993Jan8.163340.12922@slate.mines.colorado.edu>
  6. Date: 8 Jan 93 16:33:40 GMT
  7. Sender: lpratt@slate.mines.colorado.edu (Lorien Pratt)
  8. Organization: Colorado School of Mines
  9. Lines: 26
  10.  
  11. Hi,
  12.   I wonder if somebody could answer some questions about, or give me a pointer
  13. to a reference for, how to do proper top-down programming with
  14. modula-3?  I'm teaching this language for a data structures course and
  15. learning it at the same time, and I want to be sure I communicate
  16. whatever is the usual philosophy for modular coding in modula-3.  I have
  17. the Harbison book, but chapter 8 seems to present more legal syntax than
  18. stylistic issues; and the programming conventions chapter doesn't get into
  19. modularity.
  20.  
  21.   For example, what's the proper way to go about developing a program?
  22. Do you write the Main module, then the interfaces, then try to compile to
  23. check for type consistency, then fill in the modules for the interfaces?
  24. Or do people typically write their interfaces and modules that export them,
  25. before trying to incorporate them into the main procedure?  Is it a good
  26. idea to have multiple procedures per module?  
  27.  
  28.   Thanks in advance for any help or pointers you can give!
  29.               --Lori Pratt
  30.  
  31.  
  32. -- 
  33. L. Y. Pratt                           Dept. of Math and Computer Science
  34. lpratt@franklinite.mines.colorado.edu Colorado School of Mines    
  35. (303) 273-3878 (work)                 402 Stratton                
  36. (303) 278-4552 (home)                 Golden, CO 80401, USA      
  37.