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: 1032a1,b4dce73850155219,start X-Google-Attributes: gid1032a1,public X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public From: furlos@alumni.rpi.edu (Steve Furlong) Subject: Code ordering Date: 1997/09/11 Message-ID: <5v7p34$me$1@news.interlog.com>#1/1 X-Deja-AN: 271495844 References: <3416BE96.A38F2295@calfp.co.uk> Organization: Rensselaer Polytechnic Institute, Troy, NY Newsgroups: comp.software-eng,comp.lang.ada,comp.programming.literate Date: 1997-09-11T00:00:00+00:00 List-Id: In article <3416BE96.A38F2295@calfp.co.uk>, Nick Leaton wrote: ... >Ordering code bottom up a la Ada vs ordering code in any order. Does >having the ability to freely order increase the readability of the code? >Well I do like grouping features with a class in clusters, and >(hopefully) being consistent between clusters. You can always order >bottom up if you want to, but you don't have to. In other words having >free ordering is a superset of bottom up ordering. Look into "literate programming". Donald Knuth invented it for Pascal, another language which imposes strict limits on the ordering of source code. LP allows and encourages you to arrange source code in whatever order best facilitates comprehension by a human reader, and provides tools to massage the code into whatever arrangement the compiler needs. The FAQ for comp.programming.literate gives the names and download locations for quite a few LP packages, some of which can be used with Ada. It also gives names and brief reviews of several books and articles on LP. Regards, Steve Furlong