🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #4299

Re: PROLOG in the "real" world?

#4299
From: Charles Lin
Date: Fri, 04 Oct 1991 14:28
36 lines
3131 bytes
In article <1991Oct3.180209.3023@athena.cs.uga.edu>, mcovingt@athena.cs.uga.edu (Michael A. Covington) writes:
> Some people have a lot of trouble understanding that there is room in the
> world for more than one programming language, and that different languages
> are suited for different purposes.  Of _course_ Prolog isn't COBOL.
> 
> As for what language to teach first, I like the trend to use more abstract
> languages such as Scheme for beginners.  I contend that recursion is a
> natural way of thinking about problems _until_ you are brainwashed -- in
> an intro BASIC, FORTRAN, or FORTRANomorphized Pascal course -- into
> thinking it's either impossible or unduly difficult.  One of the first
> things we do is teach people _not_ to program recursively.
> 

   Recursion isn't that easy anyway.  Since it is based on induction, and since
normal folks tend to have a problem with induction, then it isn't surprising
that recursion is not the easiest concept to understand.  Of course, certain
programming languages make it harder to understand.  For example, in Pascal,
a beginner might ask what happens to the original variable values passed in
when a recursive call is made.  It is useful, to my mind, to say that the
function "stores" away these values for later use.  But then, perhaps, I, too,
have been brainwashed by the process.

   Recursion is one of those things that take a little understanding to master,
but is really neat once you get the hang of it.  Of course, this assumes that
the problem's solution can come about by breaking it into smaller pieces
and applying the same recursive solution to the smaller case.


--
   ______    __    __   ___  ____
  / ____ \  |  |  |__| |   \ |  |    Charles Lin
 | /    \_| |  |   __  |    \|  |    e-mail: clin@eng.umd.edu
 | |        |  |  |  | |  |\    |   
 | |     _  |  |  |__| |__| \___|    University of Maryland
 | \____/ | |  |____                 "I hate big sigs." -- Moo
  \______/  \_______|
Technical Details
Message-ID: <1991Oct04.142838.29652@eng.umd.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!europa.asd.contel.com!darwin.sura.net!haven.umd.edu!mimsy!mojo.eng.umd.edu!eng.umd.edu!clin
References: <1991Sep26.031311.836@monu6.cc.monash.edu.au> <1991Oct02.193655.16492@chome.ruhr.de> <1991Oct3.180209.3023@athena.cs.uga.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f907c,2ad8401e5c040397
X-Google-Attributes: gidf907c,public
X-Google-Thread: 10db24,2ad8401e5c040397
X-Google-Attributes: gid10db24,public
X-Google-Thread: f43e6,2ad8401e5c040397
X-Google-Attributes: gidf43e6,public
X-Google-Thread: 102449,2ad8401e5c040397
X-Google-Attributes: gid102449,public
X-Google-Thread: 10461e,2ad8401e5c040397
X-Google-Attributes: gid10461e,public
X-Google-ArrivalTime: 1991-10-05 02:50:51 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!europa.asd.contel.com!darwin.sura.net!haven.umd.edu!mimsy!mojo.eng.umd.edu!eng.umd.edu!clin
From: clin@eng.umd.edu (Charles Lin)
Newsgroups: comp.lang.prolog,comp.software-eng,comp.edu,comp.ai,aus.ai
Subject: Re: PROLOG in the "real" world?
Message-ID: <1991Oct04.142838.29652@eng.umd.edu>
Date: 4 Oct 91 14:28:38 GMT
References: <1991Sep26.031311.836@monu6.cc.monash.edu.au> <1991Oct02.193655.16492@chome.ruhr.de> <1991Oct3.180209.3023@athena.cs.uga.edu>
Sender: clin@eng.umd.edu (Charles Chien-Hong Lin)
Organization: College of Engineering, University of Maryland, College Park
Lines: 36