home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13256 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.8 KB

  1. Path: sparky!uunet!igor!thor!rmartin
  2. From: rmartin@thor.Rational.COM (Bob Martin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: GOTO, was: Tiny proposal for na
  5. Message-ID: <rmartin.715527587@thor>
  6. Date: 3 Sep 92 13:39:47 GMT
  7. References: <714668024@thor> <6800007@tisdec.tis.tandy.com> <1992Aug26.130335.26725@hemlock.cray.com> <1992Aug26.194538.1598@spss.com> <rmartin.714931485@thor> <1992Sep1.192043.16224@mksol.dseg.ti.com> <rmartin.715445973@thor> <1992Sep2.215323.4560@lucid.com>
  8. Sender: news@Rational.COM
  9. Lines: 50
  10.  
  11. jss@lucid.com (Jerry Schwarz) writes:
  12.  
  13. |I find this whole discussion of GOTO in comp.lang.c++ somewhat
  14. |quaint.  Perhaps it should be moved to comp.lang.c. 
  15.  
  16. |If we've learned anything in the past 20 years, it is that
  17. |that the way you write your code within a function is much
  18. |less important than the way you structure your functions and
  19. |types. The distinctive features of C++ (member functions,
  20. |inheritance, ...) are concerned with global structure and
  21. |not the local structure of functions.   
  22.  
  23. |   -- Jerry Schwarz
  24.  
  25. Jerry:
  26.  
  27. I agree with your priorities.  The structure of data and function is
  28. certainly far more important than the structure of individual
  29. functions.  Just as the structure of a building is more important than
  30. the structure of its bricks...  Nor is this a new revelation.  The
  31. practice of "modular programming", structuring your programming into
  32. many small functions, predates "structured programming" by several years.
  33.  
  34. I did not intend to start a religious war.  (Or a quaint discussion.)
  35. I had no idea that there would be such a reaction.  Structured
  36. Programming is "old news".  Arguing about whether or not to use gotos
  37. is like arguing about whether the world is round or flat. The question
  38. was settled years ago.  
  39.  
  40. I find this discussion very appropriate for the C++ group, because the
  41. old technology should not be forgotten in the pursuit of the new.  OO
  42. is a new methodology which promises some advancement.  But if we leave
  43. the old principles of Structures Programming behind in pursuit of the
  44. new, then we will have lost ground.  But if we integrate the old
  45. technologies with the new discoveries, and build upon the work of
  46. past, then we are scientists and engineers, advancing by "standing on
  47. the shoulders" of our peers and predesessors.
  48.  
  49. The principles of structured programming were an important advance in
  50. the science of software engineering.  Those principles are still valid
  51. today as a guide to structure the implementation of our methods.   We
  52. should not forget them, and if they are in question, then we should
  53. discuss them.
  54.  
  55.  
  56. --
  57. Robert Martin                        Training courses offered in:
  58. R. C. M. Consulting                       Object Oriented Analysis
  59. 2080 Cranbrook Rd.                        Object Oriented Design
  60. Green Oaks, Il 60048 (708) 918-1004       C++
  61.