Quote
Eric Zwicky wrote:
> Am I to understand from the above snippet that Pascal gives
> one a background in C?
I wouldn't exactly say that. I think that, when most people say that
Pascal is a good language to learn programming with, they mean really
that Pascal is very algorithmic in nature. By this I mean that
algorithms and their implementations resemble each other closely in
Pascal.
Beginning programming has more to do with learning how to produce
effective algorithms than it does with learning a particular language's
syntax. Once one knows how to make a good algorithm, syntax is just a
detail.
Back to Pascal and C: Suppose one starts off knowing nothing about
programming and begins by learning algorithms. If the language is Pascal
then those algorithms will translate easily into the language. If, on
the other hand, the language is C then the peculiarities of the syntax
could be stumbling block.
As an example of this, I am at present involved with a beginning C/C++
course. (The University of North Texas Computer Science Department, for
some reason, decided that C should be the first programming language for
the beginning computer science student. This is a bad move in my
opinion.) I am observing that the students fall into one of three
categories:
1. They don't understand the first thing about algorithms because they
are so overwhelmed by the C language. The algorithms are not clear to
them because they don't understand the language that the algorithms are
presented in.
2. Have figured out, with some effort, the algorithm (that is, the
solution is apparent to them in human terms) but cannot fathom how to
translate that algorithm to C.
3. They have previous programming experience and therefore have no
problem with the algorithmic portion, so they can concentrate on
learning the C language.
Of these three groups, the first two are failing the class and the third
is receiving high marks. The point is, I guess, that C is not difficult
to learn if one knows how to program already.
AME
--
Fully 75% of my personal e-mail is unsolicited adverti{*word*224}t.
If you are a real person and have something to say to me then
remove the asterisk (*) from my reply-to address.
==> While your at it, take a look at http://www.cauce.org/