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-Thread: 103376,50e705cdf2767cc6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!l2g2000prg.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Parser interface design Date: Tue, 19 Apr 2011 05:35:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4deb631f-9d21-4f0f-a5fe-29ae2a9af075@l2g2000prg.googlegroups.com> References: NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1303216513 15330 127.0.0.1 (19 Apr 2011 12:35:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Apr 2011 12:35:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l2g2000prg.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18894 Date: 2011-04-19T05:35:12-07:00 List-Id: Natasha Kerensikova wrote on comp.lang.ada: > Hello, > > On 2011-04-06, Natasha Kerensikova wrote: > >> before wasting too much time of anybody, I want to make it clear that >> I'm asking about interface design in Ada which might actually never turn >> up into real code. I'm still unsure about ever writing Ada code, and how >> bad my previous thread went playing no small part in that. However I'm >> still curious about how this particular problem might be solved in Ada. > >> [...] > >> So what would be the best approach to interface a parser and a renderer? > > It turns out that I'm coming out of this discussion in a state that is > surprisingly similar to that which I had when coming out of my previous > thread here (about S-expressions). > > From the replies I had, it seems I'm clearly, obviously and deeply wrong > according to everybody, and yet I can't even begin to understand what is > wrong and it which way it is wrong. > > It looks like I'm too stupid to use Ada, so I guess I should rather keep > writing my crappy code in C and stop bothering people with my flawed > ideas. > > Thanks a lot for all your comments, and I sincerely apologise for having > wasted so much of your time. I should have known I don't have what it > takes. > > Natasha I have not had the time to follow this thread (therefore, rest assured you have not wasted any of my time -- other things have) but I must say I am saddened by the outcome. I think you do have what it takes to be a good software engineer: the ability to think in abstract terms and the will to create better designs (as opposed to haphazardly cobbling code together). Also, I do not think this is a language problem. What you can write in C, you can also write in Ada. I suggest you do that, without too much concern about the beauty of your design, to get a good practical working knowledge of Ada. In a second step, try to eliminate as many pointers as you can. That will certainly give you ideas for a better design. -- Ludovic Brenta.