Hi,
I don't want to break your happiness with Java (probably that isn't possible at the moment - at that is good if it's your job to code in Java *grin*), but I don't get the point.

Have you not been in contact with other OO languages before? Other than C++ that is. I mean, exceptions are not really new, they are available in many languages and passing them up the stack is just normal, I think.

Using a very OO-like syntax for calling methods of objects like in your second example is quite common, too. At least as far as I know.
And then one could demand that Java shall be able to make the concatenation by adding strings together with the plus operator just the same call as the one to .append (but maybe there are reasons for that that I don't know -actually this is just a sidekick).

Java is a hype-oriented language but it doesn't mean that it sucks like hell, so one should expect that some things are fine in Java.

OK, I admit: I have never coded any real life project in Java, I just did some tutorials and a course in a magazine. I found out I didn't like it, but that's no reason for me to go cursing it. In the last weeks I spent a lot of time in Ruby and it was fun (plus there is space for people new to the opensource scenery to make themselves known, because it is new ;-)). It's got exceptions and a very powerful string class, too (just as an example).

Well, in every language it is possible to code badly and well. It's just a matter of how much you know about the internals of a language, how much you really need to care about performance and maybe how intuitive it is designed.

Sorry for not feeling that enthusiastic, I hope you'll enjoy your coding in Java!

PS: Hmm, while proofreading this post I somehow feel that I'm expressing myself quite clumsy; I hope you get my point.

Regards... Stefan
you begin bashing the string with a +42 regexp of confusion


In reply to Re: A peek at the other side or, Poof and He's Gone! by stefan k
in thread A peek at the other side or, Poof and He's Gone! by mr.nick

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.