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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,429176cb92b1b825 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!195.96.0.7.MISMATCH!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: AWS Coding Styles (and about boring plain-linear text files in the end) Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <3077fffa-eed7-4763-8bca-9ac3bb0a41e1@o14g2000prn.googlegroups.com> <82y66ihc0i.fsf@stephe-leake.org> <4d355532$0$6878$9b4e6d93@newsspool2.arcor-online.net> <8b58b9da-a014-4a0e-8d20-ca86a4993961@h17g2000pre.googlegroups.com> Date: Wed, 19 Jan 2011 15:20:17 +0100 Message-ID: NNTP-Posting-Date: 19 Jan 2011 15:20:17 CET NNTP-Posting-Host: 8cba5af5.newsspool4.arcor-online.net X-Trace: DXC=YcdGe=e9hlHI7\_^6>c20J4IUK On Wed, 19 Jan 2011 14:39:11 +0100, J-P. Rosen wrote: > Le 19/01/2011 10:13, Dmitry A. Kazakov a �crit : >>> And you want to read >>> exactly what's written, not what your brain thinks is written! >> >> Without brain thinking, you mean? (:-)) >> > I noticed the smiley, but kidding apart, I think it is very important to > realize that you don't read what is written, but what you think is > written. Right, and it is always so. Perception is a part of the process of thinking. > How many times do you chase bugs that eventually resolved to > modifying the wrong variable, and you read that damn assignment ten > times before realizing it was the wrong variable ?! Yes, because there is a mental model of the program is in the programmer's head. The correspondence of this model to the reality expressed in the language is never exact. Thinking and reading is necessary in order to improve the correspondence. I think that you meant a different thing: how well defined is the semantics of the language being read. The semantics of the newspaper language is very ill-defined, Ada is much better. But this is in no direct relation to understanding of written texts in the above sense. Diffuse and self-contradictory semantics can be easier to capture than the precise and correct one, and conversely. Further, there is no obvious reason why the process of reading should be different in both cases. I would say that it is pretty same and that the quality of text is a thing quite unrelated to its contents. >> BTW, the argument to exactness works rather against you. Consider how texts >> on mathematics are formatted. Formulae have always *shorter* lines than >> plain texts, to be read "exactly." > Hmmm... when you start having names that do not fit on one line, you > really have a readability problem. Sure, but we read different consequences from this. You believe that making lines a bit longer would solve the problem. I do not. >> Deeply nested constructs is IMO bad style, to be factored out >> into local procedures. >> > Of course, but if you consider named notation in subprogram calls (good > programming practice certainly), where you want all arrows aligned (good > presentation too), and a parameter is itself a function call, and you > have some explicit long names, you end up quite easily close to the > right margin. Not really. In fact, keyed notation is horizontally shorter because: Draw_Value (Widget, 12.8 * Get_Current_Factor (Panel), ...); is replaced with Draw_Value ( Widget => Widget, Value => 12.8 * Get_Current_Factor (Panel), ... ); -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de