*grin*

A three year lag? This should be fun.

My opinion hasn't really changed, even though I now know a bit more about Java. If you were thinking I was getting partisan about Java - don't. I don't like it much, mainly for the reasons eduardo gave.

But that Java code can be rewritten to look a lot like the Perl code eduardo put up. Use some iterators, a wrapper for the regexes. We aren't exactly a community of people who can write good Java.

The example code that gets released with libraries is usually childlike so everyone can understand it.

The statement I made was loaded to show that Java isn't all bad. In your example, you've picked Perl's best applications area - CGI. CGI.pm existed before Java did, and has been baked well. Possibly you should compare CGI.pm to Tomcat and the like - the comparison might be a little closer.

I don't see that there's anything in Java (or Python, etc) which prevents someone from writing modules that rival Perl's. I do see that the Java community is dedicated to a mediocre level of programming that the perl programmers around here couldn't lower themselves to, if they tried.

I suspect that some of the smarter Java guys where I work could cram that example into a few lines - but they're not the kind of people who release their work, and that ultimately is where we really win.

____________________
Jeremy
I didn't believe in evil until I dated it.


In reply to Re: Re: Re: Efficiency in maintenance coding... by jepri
in thread Efficiency in maintenance coding... by eduardo

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.