Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Has anyone attempted to create a PHP to Perl converter?

by einhverfr (Pilgrim)
on Nov 19, 2013 at 06:40 UTC ( #1063285=note: print w/ replies, xml ) Need Help??


in reply to Re: Has anyone attempted to create a PHP to Perl converter?
in thread Has anyone attempted to create a PHP to Perl converter?

This makes me think that the PHP CPAN module is a good thing in this regard, and that frameworks for transition may be better than code converters.

In general rewriting apps in another language means rethinking everything because there are all sorts of things that just don't quite match between apps. Something to ease the transition might be very good. So for example, despite my skepticism I think the following could be helpful

  • Boilerplate converters. Take a PHP object definition and turn it into a basic Moo or Moose definition. Don't port the methods, just the boilerplate.
  • Bridging type classes. The ability to have a PHP Array inside your Perl code may ease the transition quite a bit.
  • Web application frameworks written with conversion in mind.

These strike me as both easier and less work than a full-blown code converter but also provide all the basic infrastructure to allow a human to conversion relatively quickly and easily...


Comment on Re^2: Has anyone attempted to create a PHP to Perl converter?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-28 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls