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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-04 03:22:50 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: Tue, 4 Nov 2003 11:22:50 +0000 (UTC) Organization: PVV Message-ID: References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <3FA3B412.AF3BEB96@fakeaddress.nil> <3FA50083.10709@noplace.com> <3FA777E9.4030605@noplace.com> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1067944970 17699 129.241.83.82 (4 Nov 2003 11:22:50 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Tue, 4 Nov 2003 11:22:50 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:2032 Date: 2003-11-04T11:22:50+00:00 List-Id: On 2003-11-04, Marin David Condic wrote: > It always "sounds reasonable" - but is it backed up with any *data*? I > believe the claim because it is reasonable, but obviously, there are > folks who think that "economy of expression" is the bees knees. Hence > the strong devotion to cryptic C programming. If you seek to persuade > that crowd, some data to back up the claim would help. Sure data are nice and I haven't read the article. However, it has little to do with computer science. This is study of the human brain and perception. So comparing it to microchips is not very interesting I think. However, I find that if I read a book that is well written and clear on a subject it is easier and faster to comprehend the content. For a book which uses a lot of implicit rules and theories it takes longer to graph the content. I remember when I was a student that some of the books were a nightmare as it did: From eq (1) we have equation (1) this gives eq: equation (2) where (1) and (2) had a lot of implicit calculations etc... while it could be written of explained on the blackboards as: equation (1) equation (1.1) equation (1.2) equation (1.3) equation (1.4) equation (1.5) and then finally equation (2) However, in which of the two cases you learn more can be debated. It can be said that in the first case, if you take your time, you will probably learn better by doing all the implied calculations. On the other hand it can also be said that it is not likely that on do take the time / have the time to one would learn more by looking over the calculations between (1) and (2) and understand the progress. I'm sure that there are studies on this, but that you have to look outside your field for them. Consider: [1.1] if calc_value (some_arg) = True then -- else -- end if; to [1.2] if calc_value (some_arg) then -- else -- end if; or [2.1] if done = ture then -- end if; to [2.2] if done then -- end if; I would say that in some cases [1.1] be more readable that [1.2], but that [2.2] is more readable than [2.1] [3.1] if not calc_value (some_arg) then [3.2] if calc_value (some_arg) = False then And I would say [3.2] is much more readable than [3.1]. -- "Saving keystrokes is the job of the text editor, not the programming language."