Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Yet another Perl vs Java forweb app development question (Moved from Q&A)

by Russ (Deacon)
on Nov 30, 2000 at 00:23 UTC ( [id://43995]=perlquestion: print w/replies, xml ) Need Help??

Russ has asked for the wisdom of the Perl Monks concerning the following question:

This post was moved from Categorized Questions and Answers
Please do not vote for this node. It will affect the wrong user
Thank You -- Q&AEditors

Ok short and sweet.

I'm at an interesting crossroads at my company. We require some web applications to be developed that will allow our customers access to view product inventory levels.

I have an opportunity to select a toolset that we will utilize to develop this application and am torn between a java "app server" like Enhydra (www.enhydra.org) and a perl solution like HTML::Mason

I am looking for feedback from the community regarding experiences had using perl and or java. This thread about java and perl was very helpful, but really didn't give me any insight as to which toolset could be considered a better fit.

From the get-go internally we have more experience using perl than using java. That to me means choose perl, but I am seeking advice that might have a different view.

Thanks!

Replies are listed 'Best First'.
Re: Yet another Perl vs Java forweb app development question (Moved from Q&A)
by coreolyn (Parson) on Nov 30, 2000 at 23:25 UTC

    It is more a matter of scale and security than anything else. If your not working multiple teams of developers with multiple protocols and storage types and you already have perl expertise then go perl!

    Java would be a significant development delay as well as well as a possible architectural burden otherwise. For the most part Java is time and performance overkill, but when it comes to unifiying a large application out of many multiple applications Java is worth the penalties.

    coreolyn Duct tape devotee.
    -- That's OO perl, NOT uh-oh perl !-)

Re: Career crossroads. Yet another Perl vs Java for web app development question
by zigster (Hermit) on Nov 29, 2000 at 15:39 UTC
    Hmm, I am a java developer, and a really big fan in general of java <fx> burn the witch </fx> I am also a perl developer, so I guess I should know better *grins* Java is a very very elegent application language, that suffers from specific implementational problems.

    Now the key phrase here is application language, the structure and the elegence of java comes directly from its close ties to OO. A good design falls into code when you use java. Large applications IMHO are best written in such a way. However the devil is in the implementation, java suffers from some grave implimentation issues. The java VM is bloated and even with recent advances (Hotspot et al) it still does not offer the performance that one would want. This means specifically that the java implimentations are not suited to large applications. It is this split that is the killing java projects atm, it just does not function.

    Specifically with regard to java in an application server, I have no experience of Enhydra so cant comment on it directly, but in general terms it is my experience that java application servers provide a level of indirection between the coder and his code that makes debugging, maintenance and deployment more complex than it could be. They also seem to suffer from the general Java malayse (sp?) of bloat.

    So in general I cannot say that perl is a good solution as I have no direct experience of using perl in this way, however it is my experience as a practicing java programmer that much as I really like the language I would not select it over perl if I had the decision before me.

      Thanks so much for your reply.

      you make some good points. Most interesting is that if you had a language choice on a new project, you'd choose perl.

      Thanks again. I think that we will begin our development with perl, mod_perl, et. al. and parallel we'll flush out our java skills so that we can have the flexibility to choose whichever tool based on the project requirements.

      :)

Re: Yet another Perl vs Java forweb app development question (Moved from Q&A)
by extremely (Priest) on Nov 30, 2000 at 04:26 UTC

    Aww man, and I had answered this so succinctly in QnA:
    Go with your strong points and experience. Either is well suited to the task you have.

    --
    $you = new YOU;
    honk() if $you->love(perl)

      yes you did! Thanks so much for your reply.

      The bottom line is that we'll be going with a perl solution.

      Wheee!

      I'm thinking mod_perl, HTML::Mason, Apache::Session, and Apache::DBI to start. Might need to throw in some XML eventually... (gotta be buzz word compliant) :)

      If the mod_perl stuff gets icky we'll just fall back to good 'ol mod_perl, Apache::Registry, and CGI...
      Thanks again!

        The bottom line is always to look towards where your needs will be six months, a year, two years from now because any time you don't plan that way you can guarantee that that code will come back to haunt you...

        I am a big Mason fan -- I've used it extensively across the sites that I build and maintain: here (side note: try using lynx -- it's a small vanity, but I wanted to write the component anyway).

        From my standpoint, I particularly like the object-like features added to Mason 0.89 (methods, quasi-static variables, attributes), because they allow you to seperate the formatting from the content very effectively.

        But wait, I'm doing OO in Perl... maybe Java would be the right answer?

        Of course, it all depends -- on how many people are going to be hitting your inventory system, what kind of wait they're willing to accept, what kind of overhead the system can have...

        The persistence of Java objects beyond the scope of the request and their ability to talk between machines is a distinct asset in some circumstances. The ease of writing Perl code and parsing/embedding text is an asset in others.

        With Mason around there's no excuse for resorting to CGI -- Mason makes outputting any kind of HTML easier -- but as much as I prefer Perl for almost anything, don't just jump for the easy answer until you've made a full assesment: first of your needs, then your capabilities, and finally of the languages themselves.

        It's a truism that most programming projects fail in the planning stage because critical assumptions are overlooked and the requirements not fully spelled out. I'd strongly urge you to fully develop the Use Cases, Entity Relationships and all that other annoying crap first and then come back with the question: java or perl?

Re: Career crossroads. Yet another Perl vs Java for web app development question
by extremely (Priest) on Nov 29, 2000 at 09:50 UTC
    Go with your strong points and experience. Either is well suited to the task you have.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://43995]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-28 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found