Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Heh, to me, the best answer is that it really depends on what your attempting to do. If all your trying to do is automate some processes and what not, sure, learn perl, learning c++ first would just be a waste. However, if you are interested in more advanced stuff, like eventual game programming, learning perl as a first language will drive you insane when you 'move on' to c/c++. You end up spending the entire first year going 'What the hell, i have to write 4 different functions for 4 different variable configs' or 'i have to write 2 different functions for a string or a number?' or ' i have to write my own conversion for num to string' and various other details that are, in general, a pain in the ass. However, they are even more of a pain in the ass when you come from a language like perl, that has a huge DWIM thing going on, as opposed to c/C++'s 'Do Exactly What The Syntax Tells You To'.

Perl, on the whole, is probably much easier for 'non programmers' to learn, partly because its such a forgiving language (auto garbage collection, catchall vars, etc) partly b/c of the roots in lingustics (as everyone loves to point out), but once you learn it, you get spoiled, and moving to a very low level language can be some what of a.. shock.

Of course, it helps to use low level languages to do what theyre designed for, such as very fast graphics and drawing routines, as opposed to trying to write a program that adds up employees salarys and so forth, which is A) what most courses assign as problems and B) much more suited to a high level program. I.e., "if you can do it in one line of perl, you probably should".

In reply to Re: Learning Perl as a First (programming) language by BUU
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 sharing their wisdom with the Monastery: (6)
As of 2024-04-23 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found