I use both Perl and C++ both professionally and recreationally, but for me they scratch two very different itches.

Perl is quick to develop, and relatively simple to understand. With the usage of CPAN modules I can generally get the task done with minimal hassle. The use of regular expressions and syntax-supported hashes makes throwing data round almost pleasurable, and it's flexability and 'Doing the right thing'-mindset means it's a language which Just Works.

C++ is a cannon. I use it when I need to reach deep into system internals, or when I need a particular program to work at remarkable speeds. Using C++ is a minefield, there's a good reason two of the C++ books I use most are full of language Gotchas (Meyer's "Effective C++" and "More Effective C++"). C++ doesn't play nicely, C plays less nicely in my opinion whilst being a smaller language.

Often I'll end up combining the two, using Perl to control my C++ by expanding the two.. this way I'm getting C++'s sheer firepower, whilst the flame-retardant Perl stops my hands getting too burned.

Two language, two needs.. just don't get me onto why I sometimes choose to use Java and Assembler. After all, you could argue that Assembler is the most important language since almost every C/C++ compiler will compile to Assembler and actually use that to build the final product. Abstractation and usability are useful things, as is enjoying the job.

Yes, I did C before I did C++.. I am aware they're far from being the same language. The reason I used C++ as my example is it's what I do use nowadays, and that barring ultra low-level embedded stuff I think the two can successfully target the same areas.


In reply to Re: Re: Buzzword Alert: Turn on the LAMP by Molt
in thread Buzzword Alert: Turn on the LAMP by perlnewsbot

Title:
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, details, 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, summary, 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.