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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107f24,626a0a064b320310 X-Google-Attributes: gid107f24,public X-Google-Thread: f4fd2,626a0a064b320310 X-Google-Attributes: gidf4fd2,public X-Google-Thread: 103376,ea8ea502d35ca2ce X-Google-Attributes: gid103376,public X-Google-Thread: 1164ba,626a0a064b320310 X-Google-Attributes: gid1164ba,public X-Google-Thread: 103d24,626a0a064b320310 X-Google-Attributes: gid103d24,public X-Google-Thread: 114809,626a0a064b320310 X-Google-Attributes: gid114809,public X-Google-Thread: 10259a,626a0a064b320310 X-Google-Attributes: gid10259a,public X-Google-ArrivalTime: 2001-05-09 23:10:05 PST Path: newsfeed.google.com!sn-xit-03!supernews.com!freenix!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!feeder.via.net!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: markv@peewee.telescopemaking.org (Mark VandeWettering) Newsgroups: comp.lang.ada,comp.lang.lisp,comp.lang.smalltalk,comp.lang.basic,comp.lang.functional,comp.lang.scheme,comp.lang.perl Subject: Re: Beginner's Language? References: <9cukad$nn68@news-dxb> <9d6b6e$1bt$1@nh.pace.co.uk> <87snihxiwc.fsf@frown.here> <9dbi83$sji$1@nh.pace.co.uk> <87heyu7cqd.fsf@frown.here> <9dc20p$hh15e$1@ID-37382.news.dfncis.de> Message-ID: User-Agent: slrn/0.9.6.3 (FreeBSD) Date: Thu, 10 May 2001 06:06:23 GMT NNTP-Posting-Host: 24.7.86.254 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 989474783 24.7.86.254 (Wed, 09 May 2001 23:06:23 PDT) NNTP-Posting-Date: Wed, 09 May 2001 23:06:23 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: newsfeed.google.com comp.lang.ada:7430 comp.lang.lisp:9899 comp.lang.smalltalk:9663 comp.lang.functional:5604 comp.lang.scheme:3754 comp.lang.perl:2758 Date: 2001-05-10T06:06:23+00:00 List-Id: On 9 May 2001 18:24:26 GMT, Andreas Krennmair wrote: >The problem is that Lisp is in no way similar to a natural language. I find this statement curious. Are there programming languages which are similar to natural languages? If there are, what benefits are there from using those languages? >And >natural language can be understood easier than some functional, theoretical >stuff with a unique concept like Lisp. I've heard this argument about "natural languages" used with regards to perl before. I am always confused by it. Don't get me wrong, perl is an incredibly useful tool, and I give Larry Wall all the credit in the universe for making such a great tool and giving it to the world, but I am constantly confused by justification. First of all, precisely what feature of perl is similar to natural languages? Second of all, why do we think that natural languages are good? Natural languages are notoriously hard to learn, full of exceptions, and often vague. Last, what makes you think that processes are best described in terms of natural languages? Mathematics implements entire languages specialized to their domain just so that they can express the ideas they have clearly and concisely. >Don't get me wrong, Lisp is a great >language, and I personally find it quite exciting as four year Pascal and >two year C/C++ programmer, but it's hardly usable for teaching, because it >is so unique (well, you _could_ to functional programming in C, but it would >be considered bad style). The reason that Scheme (I'll keep pretending you were talking about Scheme) is good is precisely becaue it DOES leverage new ideas and gets students to think about computation not in the natural way that they think about it, but in the formalized way that computers do. >Lisp has hardly anything in common with natural >languages. Or could you express "My girlfriend's name is Suzy and her age >is 17" as readable as this in Lisp: >$girlfriend{'name'} = "Suzy"; >$girlfriend{'age'} = 17; (set! girlfriend '((name . "Suzy") (age . 17))) Is that so different? Are association lists really harder than associative arrays? >Of course, this is not the best example, since Perl has a syntax that is >not the optimum for beginners. In fact, it is very unoptimal for beginners. >> A beginner is not biased in any way and so it doe not matter what >> he/she started from. If he starts with Lisp; C, Java looks messy. If >It _does_ matter. Beginners can easily get frustrated because of the >sometimes confusing syntax. I'm not sure how you can present a program fragment in perl, and then in the same post claim that LISP has a confusing syntax. >BTW, I wouldn't recommend starting with Java >or C/C++, either. Neither would I, unless you want them never to program again. >I'd recommend and teach (if I were a teacher :) some >Wirth language, because they're designed especially for teaching basics >of programming. You could do worse than Pascal/Modula/Oberon, but in most respects I think Scheme is better for beginning programmers. >Best regards, >Andreas Krennmair >-- >void strncpy(char *p, char *q, int n){while(n--){*p++=*q++;}} -- /* __ __ __ ____ __*/float m,a,r,k,v;main(i){for(;r<4;r+=.1){for(a=0; /*| \/ |\ \ / /\ \ / /*/a<4;a+=.06){k=v=0;for(i=99;--i&&k*k+v*v<4;)m=k*k /*| |\/| | \ V / \ \/\/ / */-v*v+a-2,v=2*k*v+r-2,k=m;putchar("X =."[i&3]);} /*|_| |_ark\_/ande\_/\_/ettering */puts("");}}