Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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"

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://187224]
help
Chatterbox?
[Lady_Aleena]: Um, what?
[james28909]: check is is data or hash or array and do tasks then return needed data
[Lady_Aleena]: james28909, you might want to look at the other two on my scratchpad.
[james28909]: after you send to a sub, you can check if it is array or ref ect with ref
[james28909]: check if it is a hash or an array ect with ref in one sub.
[james28909]: like all the subs calling get_data get_array get_ect, you could just use get_data. once you send the data to get_data, check if it is a hash or an array ect. and do functions for each, in one sub
[james28909]: that looks like it would be alot more work than just renaming the sub though lol

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-05-24 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?