in reply to C++ vs. Perl mention on shygypsy.com

If I recall correctly, comparatively it takes at least 5-6 lines more of code in C++ that in perl to write a simple "Hello world" program.

Yes, and? Unless one is either brilliant, or writes only trivial (or buggy) programs, ones programming speed isn't bounded by ones typing speed.

I can write most programs faster in Perl than in C, but I write more lines/hour programming in C than in Perl; even while my C gets a lots less practise than my Perl.

And if the author of the article is more efficient in C++ than in Perl, why get worked all over it? It's his code, his time, his application.

  • Comment on Re: C++ vs. Perl mention on shygypsy.com

Replies are listed 'Best First'.
Re^2: C++ vs. Perl mention on shygypsy.com
by stonecolddevin (Parson) on Oct 23, 2006 at 15:27 UTC

    I'm not really getting "worked" over it, I was just a bit astounded that someone could write something faster in C++ than perl, not factoring in libraries and classes, etc. I guess exponentially, once one got things rolling in C/C++ they could be more "productive", but I haven't written a large enough C/C++ program to know this first hand.

    UPDATE:Perhaps comparing lines of code wasn't the angle i wanted to take, as AnonyMonk said, one's typing speed isn't a binding when it comes to writing worthwhile code. I was thinking more along the lines of set up vs. actual meat code that allows you to get into the thick of what you want your code to really do, perl seems to let you do this fairly quickly, especially compared to C++.

    meh.