Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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]
choroba is in the office!
[LanX]: disc+ your own balls?
[Discipulus]: testicles..

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-04-26 10:04 GMT
Find Nodes?
    Voting Booth?