I am going through similar stresses at the moment, and to reiterate moritz's advice, Java and Perl really don't bear much similarity, and aren't really learned in the same way. However, I do really think it is worth while, because I feel ( and this is just, like, my opinion man, and i am sure a lot of differing opinions exist... ) that Perl and Java, in combination, give you the skills to approach a huge diversity of problems.

Perl, for me, has the benefit of short development time, a great support community and a vast library of public code. Which makes it superb for getting things done.

However for larger applications, especially graphical ones, Java comes into it's own. Being fully OO, and with strict typing, development (in terms of bug-fixing especially) and leaving a lasting legacy (rather than a maintainers nightmare) becomes much more feasible, at the cost of being much more wordy and all the other usual complaints. Also, because people tend to rely most heavily on the core libraries, it is a little bit easier to make applications that work 'out of the box'.

I am still getting the hang of Java, and my knowledge is much worse than for Perl (which even then isn't anything to boast about!), but one lesson i have learned already is better project management. Java makes you think and plan in advance a lot more, which has certainly imporved my coding in Perl, and it has helped me understand OO concepts better ( like abstraction and encapsulation ) which again has improved my Perl.

Also in general, I find myself thinking which language would best suit the project, whether this is something i just need to get done, or something which i will build on for years to come and make into a huge 1000's of lines project.

Big projects seemed to me to be Perl's weakness, which was why i looked into Java ( and to improve *job* options... ) and i think the two complement each other well, as opposed to Python / Ruby etc... which seem to also be very popular, but in my mind stand a bit in the middle ground and are neither as good at the swiss-army-chainsaw stuff as Perl, or as good as Java for bigger applications. I hear very good things about Ruby though, especially the Rails stuff, but i am not really a web-person, so i haven't put too much time into it.

Anyway, I guess my point is that Java and Perl are very different, but that is a good thing. As moritz said, you shouldn't try to combine the two, but really try to understand their respective strengths and weaknesses and apply them to each problem in the best way.

Just a something something...

In reply to Re: Perl "with" Java by BioLion
in thread Perl "with" Java by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.