Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-09-19 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (133 votes), past polls