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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,12b7ccf8e17b10da X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Using ADA to write a Grade Program (ARRAYS) Date: 1998/04/19 Message-ID: #1/1 X-Deja-AN: 345814567 References: <353A332D.81A5677E@erols.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 893040277 4804 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-04-19T00:00:00+00:00 List-Id: Sam posted some tentative Ada-like code ... Sam, this is very approximate Ada code. You may be able to get enough comments to beat it into shape, but I think you will find in the long run that it is far more effective, and less frustrating, to really learn the precise details you need to write accurate code from the start. At least that is my experience with people learning to program. I see a number of students who work this way -- write very approximate code and then ask for help and advice to correct it. It works for the simple programs given out as assignments early on, or at least works well enough, but in the long run, it is a bad idea, and when the assignments get more complex, you run into real problems. You need to learn *at this stage* how to write *for yourself* (without outside help) precise code that does exactly what you want. Yes, this is hard work, but it is hard work that will pay off later. I suggest taking the time and effort to work through one of the on line tutorials that are accessible from the net (look at www.adahome.com to get references). If you work a tutorial, and really understand each point, then you will be able to come back to a trivial assignment like the one you are working on, and you will be surprised to agree that it is indeed trivial! I post this rather than send it as email, because I know a lot of students read this newsgroup, and this is generally useful advice. P.S. the code you posted contains at least 15 errors, most of them pretty serious, and in several places the code is so garbled that it is hard to even guess what you had in mind.