Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: Perl "with" Java

by gwadej (Chaplain)
on Nov 23, 2009 at 19:33 UTC ( #808907=note: print w/ replies, xml ) Need Help??

in reply to Re: Perl "with" Java
in thread Perl "with" Java

I think the best advise is Don't try to write Perl code in Java

I think that is one of those statements that might sound insightful to some people, but in fact it's really hollow to the core.

I really have to disagree with this statement, for two reasons.

First, it is quite possible to try to write code using inappropriate idioms from another language. Over the years I have maintained Fortran code written in C, Java written in Perl, C written in Perl, and even Fortran written in Forth. A particularly stubborn programmer can often force idioms from another language into a different language. It is usually especially painful for any poor soul who must maintain this code.

The second issue is the frustration caused by trying to write Perl in Java. Learning a new language by trying to translate the syntax explicitly will often result in much frustration. So the advice to not write Perl in Java could be considered as a reminder that you should keep the target language's idioms and syntax in mind rather than trying to use Perl's idioms.

G. Wade

Comment on Re^2: Perl "with" Java

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-09-03 00:25 GMT
Find Nodes?
    Voting Booth?

    My favorite cookbook is:

    Results (34 votes), past polls