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,92c39a3be0a7f17d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-07 12:52:56 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kcline@optelnow.net (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: Future with Ada Date: 7 Mar 2002 12:52:56 -0800 Organization: http://groups.google.com/ Message-ID: References: <3C7B0B13.3080003@worldnet.att.net> <3C7D1C89.2000803@home.com> <3C7E7CAD.7070504@mail.com> <3C7FB9D2.D9C6E055@boeing.com> <3C81DF1F.9000503@mail.com> <3C83A112.6080302@mail.com> <3C84223C.A356F466@adaworks.com> <3C853A04.34826F39@despammed.com> NNTP-Posting-Host: 198.23.5.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1015534376 1723 127.0.0.1 (7 Mar 2002 20:52:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Mar 2002 20:52:56 GMT Xref: archiver1.google.com comp.lang.ada:20912 Date: 2002-03-07T20:52:56+00:00 List-Id: "Marin David Condic" wrote in message news:... > "Georg Bauhaus" wrote in message > news:a65gj5$n73$1@a1-hrz.uni-duisburg.de... > > Marin David Condic wrote: > > : > > : Why not for "if" statements > > > > Hmm, are you suggesting that you feel comfortable with if > > statements that span more than say 12 lines and/or are nested > > to some unspeakable level of say 3 or more? :-) > > > > Why, "yes". What's your point? :-) Sometimes a big case or if is a perfectly > good way of reflecting what's going on. (Think of lots of "when" or "elsif" > parts, for example.) Things should be made as simple as possible, but no > simpler. I used to happily program this way until I realized people (including me, after a few weeks) trying to read my code were drowning in details. Now I limit myself to one level of nesting per function, unless some performance analysis proves the function call overhead is too great. It's true that the complexity has to be somewhere, but it's not necessary nor desirable that it all be in one place. I find it much easier to understand five ten-line functions than to understand one fifty-line function.