Link Details

Link 110147 thumbnail
User 245833 avatar

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.
  • 18
  • 0
  • 1174
  • 287

Comments

Add your comment
User 213320 avatar

bjupton replied ago:

2 votes Vote down Vote up Reply

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.

User 282119 avatar

Rob Signorelli replied ago:

0 votes Vote down Vote up Reply

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.

User 213320 avatar

bjupton replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.