I spent the last few weeks, part time, developing a web application using java (Struts/Hibernate/Spring). For the first time, I consciouly took note of how much time I spent converting types, e.g., the number 100, some wants it to be long, some String, some Long, and then the dreaded "List/Vector of Long" to long[], or Long[]. In perl, one hardly ever needs to do these.
Furtheremore, in java, it's not often that I make a ClassCastException during runtime. One can argue that's because the compiler caught most for me, but even during compilation, the most often occured error of this type for me is forgetting to cast to an concrete object when doing iterator.next() or List.get(), but in that case, the compiler isn't really helping me in any way: I'm already assigning to the right type. Similarly, in perl, without static typing, I don't remember making many "ClassCastException" type of errors. So I'm claiming that at least this asepct of static typing is mostly a waste of time as pratical programming goes.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.