Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Learning Perl as a First (programming) language

by sauoq (Abbot)
on Aug 02, 2002 at 21:25 UTC ( #187224=note: print w/replies, xml ) Need Help??

in reply to Learning Perl as a First (programming) language

I don't think Perl is a bad first programming language to learn but I don't think it's a great language for learning programming.

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:

"to make available a language suitable for teaching programming as a systematic discipline based on fundamental concepts clearly and naturally reflected by the language"1
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.

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.

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 despite 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.

1 ISO 10206:1990 "Extended Pascal"

"My two cents aren't worth a dime.";
  • Comment on Re: Learning Perl as a First (programming) language

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://187224]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-01-23 13:38 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (192 votes). Check out past polls.