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,4de2579a53c3574f X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Help with my program Date: 1997/02/21 Message-ID: #1/1 X-Deja-AN: 220424811 References: <3308B6FD.507C@fdusvrt1.fdu.edu> <330BA896.2C9@zip.com.au> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-02-21T00:00:00+00:00 List-Id: Peter said <> I assumed (perhaps wrongly, but I doubt it) that this was a homework excercise. Peter may *think* that he is helping by doing other peoples homework assignments, but in fact it is harmful. Doing you own work in figuring out homework assignments is one of the most important ways of learning, and you short circuit this if you spoon feed answersw. In this case, the student (again I am assuming this was a student doing a home work excercise), had declared a variable b, which was not otherwise referenced in the program, and could not understand the diagnostic that commented that b was never assigned a value. Peter's help consisted of writing the code for the student that used b, but I don't think that's helpful. Obvsiouly there is a very fundamental lack of comprehension here, and it is not easy to even address this level of lack of comprehension. If you do not understand that variaboles in your program are declared because they are to be used for some purpose, then you are missing some very fundamental grasp of what programs are all about. Supplying incomprehensible code is NOT the way to help some one with this level of confusion. What you need to do is to ask the person WHY they do not understand a message like this, as I did. From that answer you will be able to get to the bottom of the misunderstanding. Remember that the problem here is not to write a calculator program, it is to understand HOW to write a calculator program. it is very easy to help with the first problem (as Peter did), it is MUCH harder to help with the second. A friendly atmosphere in which students can easily get others to write ttheir assignments for them may look nice, and short-sighted students will no doubt find it nice, but it is NOT being helpful to them! RObert