On Sun, Sep 21, 2003 at 09:17:38PM -1000 Marc Adler wrote:

> * Tassilo von Parseval <[EMAIL PROTECTED]> [2003-09-21 20:27]:

> > I was always of the opinion that knowing C is one of the essential
> > things. Too many vital stuff is nowadays hidden away from the user in
> > more recent languages (such as portability issues and memory management
> > for instance).
> > 
> > C also has the advantage that it integrates tightly into perl. You can
> > write Perl modules as C extensions which is fun and will teach you a lot
> > about perl and how interpreters in general work.
> > 
> > However, C's learning curve is rather steep (but shorter than Perl's).
> 
> Would learning C++ do just as well? On many of the C/C++-related
> websites/newsgroups they say that there's no point in learning C because
> you'll have to unlearn a bunch of "bad habits" when you learn C++ (I
> don't know either language, so I don't know what those habits might be).

Well, the same is probably true the other way round. C and C++ are not
the same languages. If that would really matter, you could always only
learn one of them.

If one plans on learning both of them, C should come before, I think. C
is a minimal language whose concepts you should know when doing C++.
There are subtle differences between seemingly similar things though. A
good C++ introduction should mention them.

> Also, how commonly is perl learned as a first language?

I don't know. For me it was de-facto the first language. I learnt
Modula-3 before that but I'd rather not want to talk about that. Knowing
Perl made it pretty easy (in my perception) to learn other languages. In
my case this was mainly Java (unsuitable as first language because it
disallows too many things) and after that C (though: no matter which
language you learnt first, learning C will sooner or later make you send
curses towards heaven; so many things don't work in the beginning).

> > $_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
> > pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
> > $_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval
> 
> What's all that?

It's a JAPH. See 'perldoc -q JAPH'. If you preserve the whitespacing of
the above, you can run it as Perl code.

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to