note
sauoq
I don't think Perl is a bad <em>first programming language to learn</em> but I don't think it's a great <em>language for learning programming.</em>
<p>
Perl provides some instant gratification and that's encouraging for people just being introduced to programming in general. On the other hand, Perl hides many of the details to which new programmers should get some exposure. As unpopular an answer as this might be, I think Pascal is a good language for learning programming. The first design goal Wirth set for Pascal was:
<blockquote>"to make available a language suitable for teaching programming as a systematic discipline based on fundamental concepts clearly and naturally reflected by the language"<sup>1</sup></blockquote>
I think the language successfully met that goal. Pascal provides a gentle introduction to important concepts like pointers, memory management, data structures and abstraction, and structured programming.
<p>
I learned BASIC first (and found its instant gratification encouraging,) then some assembly for the 6809. Then I learned Pascal and it helped me better understand what I already knew and gave me a good foundation. After that, C came pretty easy.
<p>
Lisp hit me with many new concepts, particularly about algorithms. I think it would make a good first language in many respects. It's beautiful and syntactically minimal. I understand MIT uses scheme in its introductory courses. Now, many schools are teaching C++ first. I think that's horrid. I use OOP <em> despite</em> the fact that I was introduced to it through C++. If I had to choose between recommending C++ or Perl as a first language, Perl would win hands down.
<p>
<p>
<font size=-2><sup>1</sup> ISO 10206:1990 "Extended Pascal"</font><br>
<pre>
-sauoq
"My two cents aren't worth a dime.";
</pre>
187006
187006