From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,9a0ff0bffdf63657 X-Google-Attributes: gidfac41,public X-Google-Thread: f43e6,9a0ff0bffdf63657 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,9a0ff0bffdf63657 X-Google-Attributes: gid1108a1,public From: Patrick Logan Subject: Re: Software landmines (loops) Date: 1998/09/12 Message-ID: #1/1 X-Deja-AN: 390292467 References: <6rf59b$2ud$1@nnrp1.dejanews.com> <6simjo$jnh$1@hirame.wwa.com> <35eeea9b.2174586@news.erols.com> <6sjj7n$3rr$1@hirame.wwa.com> <35f055a5.1431187@news.erols.com> <6sjnlu$83l$1@hirame.wwa.com> <6skfs7$2s6$1@hirame.wwa.com> <35F252DD.5187538@earthlink.net> <6sur5m$n9o$1@hirame.wwa.com> Organization: Teleport - Portland's Public Access (503) 220-1016 NNTP-Posting-Date: Fri, 11 Sep 1998 17:54:37 PDT Newsgroups: comp.lang.eiffel,comp.object,comp.software-eng,comp.lang.ada Date: 1998-09-12T00:00:00+00:00 List-Id: In comp.object Robert I. Eachus wrote: : One of the proposals for how to limit the complexity was to : basically draw a line through the flow chart and count threads of : control that were crossed. Someone said "One is perfect, two is : fine, and three is spaghetti." Everyone laughed, including : Dijkstra, and we went on to other topics. : Early exits help avoid that definition of spaghetti, while some of : the se/se proposals we have seen egregiously violate it. And I : think that is a perfect summation of what structured programming is : about. Maybe you also have to draw a line from top to bottom and count the number of returns? -- Patrick Logan (H) mailto:plogan@teleport.com (W) mailto:patrickl@gemstone.com http://www.gemstone.com