Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: C or C++ to go with Perl.

by tobyink (Abbot)
on Jan 18, 2013 at 08:53 UTC ( #1013987=note: print w/ replies, xml ) Need Help??


in reply to C or C++ to go with Perl.

Perl is part of the "C family" - i.e. a language syntactically inspired by C (like Java, Javascript, etc), so if learning C some things will be familiar - insignificant whitespace; many of the operators; some functions (printf, sprintf, etc); braces as block delimiters; semicolons as statement separators; etc.

Some things in C are quite painful though; memory management is done manually - you often need to deallocate the memory used by variables when you've finished using them - it lacks an automatic garbage collector. And personally I've never been especially happy with the lack of a native string data type (strings are just arrays of characters).

But C/C++ is one of the most widely used programming languages in the world - perhaps the most widely used. So it will stand you in good stead that way.

Another direction to consider is something like Ada - a high level, object-oriented language which can compile down to machine code. (Ada has been on my "to learn" list for some time, but recent events have pushed Scala up the list.)

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re: C or C++ to go with Perl.
Select or Download Code
Re^2: C or C++ to go with Perl.
by Tommy (Chaplain) on Jan 18, 2013 at 22:14 UTC

    recent events have pushed Scala up the list

    Chromatic's reddit post re: Moe?

    Tommy
    A mistake can be valuable or costly, depending on how faithfully you pursue correction

      Indeed. I don't read reddit, but read about Moe from the horse's mouth.

      perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

        When I heard, I thought it was insane. The title of his talk offended me...

        Then I went and read it. Then I thought about how awesome it would be *starry look in eyes*. I thought about the fun, the possibilities. I felt inspired. I began to understand... that it just. might. be. true. maybe.

        Time will tell, as it always does. I hope it does "light the fire", bring about the changes we need. We deserve the Perl that he's talking about. We can do better, and we should.

        Tommy
        A mistake can be valuable or costly, depending on how faithfully you pursue correction

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013987]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-08-20 23:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (125 votes), past polls