By alnik
via javaadami.blogspot.com
Published: Sep 04 2008 / 14:00
Whenever a scripting language wants to make a good appearance, they compare themselves with Java with deliberately verbose code snippets. Reading a file, some regular expression tricks, or even a Hello World application. Java indeed is not a new language and not really suitable for some scripting tasks by default. However, sometimes for such tasks (or for any task actually) you don't have time to learn a script language, it may be handy to use helper libraries. Actually that is the spirit of Java, that if something can be reused, make it a small library instead of doing everything with core language or libraries over and over.
Comments
bjupton replied ago:
Honestly, if you've been working at this for a few years and you haven't taken the time to learn a scripting language(esp one of the big 3), but are just blindly using Java for everything, you should really reexamine what you are doing with your career.
A programmer that only knows one language is like a mechanic that only knows how to use wrenches. Sometimes, you need a screwdriver, a hammer, etc etc.
Rob Signorelli replied ago:
Alternately, it's no better to run off to learn the scripting language flavor of the day because you think some common task requires overly verbose code when it can easily be thrown into some other helper/library. A lot of people thumb their noses at just throwing things in a library and I can't for the life of me figure out why. Although sometimes it is useful to pick up a scripting language, that's not always the case. To continue the analogy, sometimes it's like putting down your hammer for an even bigger hammer with more instructions.
bjupton replied ago:
I'm very confused about which scripting language you are talking about that is MORE verbose than Java.
Java, due to the compromises that were made in its birth, is one of the most verbose languages in use today.
Voters For This Link (18)
Voters Against This Link (0)