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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,33fc00a6ce6be410 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Harald Korneliussen" Newsgroups: comp.lang.ada Subject: Re: Dynamic String Date: 1 Nov 2005 00:02:41 -0800 Organization: http://groups.google.com Message-ID: <1130832161.671656.88230@o13g2000cwo.googlegroups.com> References: <1130753721.639869.322210@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 158.38.140.179 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1130832169 24430 127.0.0.1 (1 Nov 2005 08:02:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 1 Nov 2005 08:02:49 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=158.38.140.179; posting-account=5vUApw0AAADF5Kx_4-L9ZPdL9lZywYoQ Xref: g2news1.google.com comp.lang.ada:6080 Date: 2005-11-01T00:02:41-08:00 List-Id: Larry Kilgallen wrote: > In article <1130753721.639869.322210@g43g2000cwa.googlegroups.com>, "Harald Korneliussen" writes: > > > > TC wrote: > >> I have some problem with Strings Unbounded. > >> How read a string from keyboard and put in S(Strings Unbounded)? > >> > >> there is a manual or site on line that have an example of use the > >> Strings Unbounded, Wiki is no very good > > > > I believe GNAT has a utility function to do this. But when such a > > function is not standardized, I wonder how some people can say (like > > they do in wikibooks) that Ada is a rapid application development > > language. > > Rapid application development makes sense for keyboard-style interfaces > where one is going to accept input from humans. Pick a maximum size and > go with it. > > If your goal is to parse XML strings of arbitrary size created by some > other computer, then a more careful approach than RAD is required. Fred Brooks claimed that programming is inherently hard, and suggested that the best way to write software quickly would be to not write it at all, but use pre-written modules. RAD languages like Java, C# and Visual Basic (gross!) attempt to leverage that idea. It helps with development speed, however it is usually a good idea security-wise as well. For instance, I'd trust the XML parsers of java quite a lot more than some random equivalient written in C. If I really needed it, and could afford it, and was personally accountable anyway (so blaming my suppliers would not be an option), I would perhaps hire you to write a custom XML-parser in Ada, Larry ;-) btw, I think Ada is great, but it's not for rapid application development. I wish it could be that too, but without even a container library... I understand that containers have been left out of Ada0Y again?