TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
"W. Wesley Groleau x4923" <[log in to unmask]>
Wed, 1 Dec 1999 16:24:43 -0500
text/plain (35 lines)
> I really have to disagree with your statement about VB.  We are talking
> about teaching Freshmen, not Juniors or Seniors.  ....

But what about the bad habits they pick up?  I see Ada written by former
C people with no range constraints.  They've learned that when you need a
number, you say int, float, or double.  So they will never use
"... is range 1 .. 100;"  unless the instructor forces them to.  Similarly,
I've debugged Pascal written by Fortran folks that said

  CONST
     Depth_Mode = 1;
     Distance_Mode = 2;
  ...
     if Mode = Depth_Mode ...
     (or even 'if Mode = 1 ...')
  ...

> about teaching Freshmen, not Juniors or Seniors.  In a very practical
> sense, if you try to tell Freshmen how great generics, inheritance, etc.,
> are, it's likely that those who don't quit after the first two weeks .....

Sure.  But you start out with the easy stuff and add to it as you go
along.

On the other hand, if you teach VB (or even C) first, and constantly point
out its deficiencies as you go along, maybe that's not so bad.  If the
student learns what's great about a range constraint WHILE learning how to
declare a C int ....

But what if you taught both together?  A little Ada, and the corresponding
features of (language X) at the same time, with a brief discussion of the
pros and cons of each might help avoid the tendency to always want to
write in your first language (and to act like it when writing in other
languages).

ATOM RSS1 RSS2