What could be the reasons for converting Perl to Java?

I saw several jobs around that revolve around converting Perl scripts to Java. What are the benefits of this?

I am not looking for reasons to improve performance. I am trying to figure out the business technical reasons why they will deal with this. Is Java more convenient than Perl scripts?

+4
source share
4 answers

In some regions, it seems difficult to find new Perl developers. Although this problem is mitigated, in my opinion, by the low human resources needed to service Perl (creo ignem ...), businessmen tend to be nervous when they feel that way.

+3
source

A good reason might be prototyping .

Perl is an excellent prototyping language, so it is much better suited for the rapid development of ideas and a working solution. Once the β€œidea” is fully stress tested, it can be converted to Java to go live.

Another reason is probably because programmers would rather use Perl than Java :)

Here is a related blog I read recently: Perl and Java in Enterprise

+1
source

There can be many fairly legitimate reasons, for example.

  • Java servlets run faster than Perl CGI scripts in some web server configurations (not necessarily all); I have done this before, and it was definitely a β€œgood thing”, we got a lot of performance improvements.

  • Java can be considered as more suitable for a team working with a common object model, DAO classes, etc.

  • you may want to choose a technology that is known to work well with leading platforms such as Spring, Hibernate, EHCache / Terracotta, JUnit

  • experienced Java developers may find it easier to hire experienced Perl developers

  • project size can make Perl scripts seem uncomfortable with

  • there may be an internal library of JAR / business domain classes that the company wants to reuse

Of course, there may also be a non-technical political solution in the game, for example. a new managerial rental whose previous experience forced him to stick to his preferred technology.

+1
source

It is very difficult to guess why, if someone does not know what the Perl scripts are for, but speed, memory, readability, and scalability may have something to do with it.

Debian Shootout is not a bad place to start if you want to know where each forte language lies.

Perl scripts tend to run slower than Java.

I have done some coding in Perl in the past for some pretty intense crunching applications. Looking back, a faster language such as Java or C would be a much smarter choice.

-1
source

Source: https://habr.com/ru/post/1303753/


All Articles