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,FREEMAIL_FROM, 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: 1108a1,9a0ff0bffdf63657 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,9a0ff0bffdf63657 X-Google-Attributes: gidf43e6,public From: sureshvv@hotmail.com Subject: Re: Software landmines (loops) Date: 1998/09/09 Message-ID: <6t6shq$f53$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 389503850 References: <6rf59b$2ud$1@nnrp1.dejanews.com> <6spia2$1s36$1@prime.imagin.net> <35F06D6A.91A3D34E@s054.aone.net.au> <6t6b3m$30j8$1@prime.imagin.net> X-Http-Proxy: 1.0 x9.dejanews.com:80 (Squid/1.1.22) for client 207.71.79.77 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Sep 09 21:39:06 1998 GMT Newsgroups: comp.lang.eiffel,comp.object,comp.software-eng,comp.lang.ada X-Http-User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Update a; Windows NT) Date: 1998-09-09T00:00:00+00:00 List-Id: In article <6t6b3m$30j8$1@prime.imagin.net>, smize@imagin.net (Samuel Mize) wrote: > > One heuristic that is often helpful in improving clarity of expression > is to break up a long, complex sequence into shorter, well-structured > components. This is true in English and in code. > Well said. The multi-return structure enables you to separate code in small independent blocks, each of which may be examined and understood with less interference from surrounding blocks. The se-se structure creates large blocks, requiring more context information. > That's the central intuition of "structured programming," as I > understand the term, which is in a broad sense. Single entry/exit, > end-exit loops, and other constraints, are specific approaches to > defining the structures to be used. > Agreed. In this case, se-se is a good starting point. But the tree structure (as someone referred to it; i would be interested in a reference) IMHO, is superior in capturing this intent of structured programming (irresp. of if Dijkstra would approve of it). suresh -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum