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.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48, FORGED_GMAIL_RCVD,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d5b211b0c1ffcf3e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.204.132.81 with SMTP id a17mr398210bkt.4.1339692810979; Thu, 14 Jun 2012 09:53:30 -0700 (PDT) Path: e27ni47945bkw.0!nntp.google.com!news1.google.com!postnews.google.com!re8g2000pbc.googlegroups.com!not-for-mail From: quiet_lad Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Wed, 13 Jun 2012 03:35:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <79c5c9f7-4b72-4990-8961-b3e2db4db79b@qz1g2000pbc.googlegroups.com> <98ef69fe-f5af-485b-89b2-9358059f4582@googlegroups.com> <1q346u53zhu10.p16uyzeau73b.dlg@40tude.net> NNTP-Posting-Host: 173.60.202.188 Mime-Version: 1.0 X-Trace: posting.google.com 1339584534 13211 127.0.0.1 (13 Jun 2012 10:48:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 13 Jun 2012 10:48:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: re8g2000pbc.googlegroups.com; posting-host=173.60.202.188; posting-account=P7XY3woAAADWVZ3Q8yfcXP4_h9XhQ8Kj User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (X11; FreeBSD 9.0-RELEASE amd64; U; en) Presto/2.10.229 Version/11.60,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-06-13T03:35:05-07:00 List-Id: On Jun 10, 12:47=A0pm, "Dmitry A. Kazakov" wrote: > On Sun, 10 Jun 2012 19:04:02 +0200, Yannick Duch=EAne (Hibou57) wrote: > > Le Sun, 10 Jun 2012 17:49:40 +0200, Shark8 a > > =E9crit: > >> Ironically, most of them aren't used in the mainstream of software > >> development which tends to fall back on C's string manipulation [style > >> of] functions or Regex (which is horrible if you look at Regex from a > >> maintenance perspective.). > > > If Regular Expressions appears as is, as literals in the program, yes, > > that's a maintenance nightmare. But you may decompose the expressions, > > build them incrementally (I use to do it with Python), or even fork to > > something similar which could use objects and structures instead of > > unreadable literal expressions (I don't one, just an idea). > > That does not change the fact that SNOBOL patterns are far more powerful > (the language generated is of a much wider class), much more readable. Th= e > problems are that any patterns are unmaintainable unless trivial. Trivial > patterns require no special means. Another problem is not in having patte= rn > as an object. This is well possible in Ada. The actual problem is to have= a > pattern matching construct in the language. You need something like > > =A0 =A0match Variable in Stream by Pattern do > =A0 =A0 =A0 =A0... > =A0 =A0end match; > > which would initialize Variable or set of variables by matched parts of t= he > Pattern while advancing Stream while the pattern is matched. It is very > difficult to describe in a structured manner. The way SNOBOL handles that > is total mess. Variables are specified in the pattern. Success and failur= e > are just labels etc. It is not worth the efforts to bother about that, > because, as I said, patterns is a bad idea in general. > > -- > Regards, > Dmitry A. Kazakovhttp://www.dmitry-kazakov.de What does one do then with say 1000 websites on 1 web appserver? If not use patterns?