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

comment on

( #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

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

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

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

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (4)
    As of 2020-07-11 20:28 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found