Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://808907]
[Discipulus]: my son was used to say being left-handed on both hands..
[erix]: ambysinistral ;)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2018-02-19 12:17 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (264 votes). Check out past polls.