home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!igor!thor!rmartin
- From: rmartin@thor.Rational.COM (Bob Martin)
- Newsgroups: comp.lang.c++
- Subject: Re: GOTO, was: Tiny proposal for na
- Message-ID: <rmartin.715527587@thor>
- Date: 3 Sep 92 13:39:47 GMT
- 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>
- Sender: news@Rational.COM
- Lines: 50
-
- jss@lucid.com (Jerry Schwarz) writes:
-
- |I find this whole discussion of GOTO in comp.lang.c++ somewhat
- |quaint. Perhaps it should be moved to comp.lang.c.
-
- |If we've learned anything in the past 20 years, it is that
- |that the way you write your code within a function is much
- |less important than the way you structure your functions and
- |types. The distinctive features of C++ (member functions,
- |inheritance, ...) are concerned with global structure and
- |not the local structure of functions.
-
- | -- Jerry Schwarz
-
- Jerry:
-
- I agree with your priorities. The structure of data and function is
- certainly far more important than the structure of individual
- functions. Just as the structure of a building is more important than
- the structure of its bricks... Nor is this a new revelation. The
- practice of "modular programming", structuring your programming into
- many small functions, predates "structured programming" by several years.
-
- I did not intend to start a religious war. (Or a quaint discussion.)
- I had no idea that there would be such a reaction. Structured
- Programming is "old news". Arguing about whether or not to use gotos
- is like arguing about whether the world is round or flat. The question
- was settled years ago.
-
- I find this discussion very appropriate for the C++ group, because the
- old technology should not be forgotten in the pursuit of the new. OO
- is a new methodology which promises some advancement. But if we leave
- the old principles of Structures Programming behind in pursuit of the
- new, then we will have lost ground. But if we integrate the old
- technologies with the new discoveries, and build upon the work of
- past, then we are scientists and engineers, advancing by "standing on
- the shoulders" of our peers and predesessors.
-
- The principles of structured programming were an important advance in
- the science of software engineering. Those principles are still valid
- today as a guide to structure the implementation of our methods. We
- should not forget them, and if they are in question, then we should
- discuss them.
-
-
- --
- Robert Martin Training courses offered in:
- R. C. M. Consulting Object Oriented Analysis
- 2080 Cranbrook Rd. Object Oriented Design
- Green Oaks, Il 60048 (708) 918-1004 C++
-