Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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"

-sauoq
"My two cents aren't worth a dime.";

In reply to Re: Learning Perl as a First (programming) language by sauoq
in thread Learning Perl as a First (programming) language by japhif

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-23 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found