Coder’s Eye

A site about one of the three passions in my life.

Coder’s Eye header image 2

XML Is Java’s Scripting Language

March 13th, 2006 · No Comments

Troll Great article at Lesscode.org, responding to Gosling’s dismissal of scripting languages.

Usually, I ignore attacks like Gosling’s as not worth my limited time and attention. I love Python, and it really doesn’t bother me when the ignorant attack my language-of-choice. This article is better than the original by orders of magnitude, due to its heavy linking and its excellent reader commentary.

My favorite quote from the article is: "this is why XML is used so heavily in Java for things like O/R mapping, dependency injection, configuration, build processes, etc. — XML is Java’s scripting language". It is actually from a reader comment, which is worth quoting in full.

But Ruby, Python, Perl, Smalltalk, etc. are not specialized scripting languages. They are general purpose programming languages. I believe one of the reasons the term “scripting language” has stuck with them is partially because it’s become so common to create mini-languages (i.e. DSLs) in dynamic languages that are specialized for certain tasks. So it’s sometimes hard to separate the specialized pieces from the general purpose pieces. Contrast that with static languages, where you are forced to create a completely separate “scripting language” when you need to provide a constrained/specialized language (this is why XML is used so heavily in Java for things like O/R mapping, dependency injection, configuration, build processes, etc. — XML is Java’s scripting language). In dynamic languages, you are generally not required to leave the core language to get that specialization: you use techniques like meta-programming and DSLs or just include/require/use some designated file at a designated point and let it do it’s thing with the API.

Tags: Rants · Python · Java

Bookmark this article

del.icio.us:XML Is Java's Scripting Language digg:XML Is Java's Scripting Language spurl:XML Is Java's Scripting Language wists:XML Is Java's Scripting Language simpy:XML Is Java's Scripting Language newsvine:XML Is Java's Scripting Language blinklist:XML Is Java's Scripting Language furl:XML Is Java's Scripting Language reddit:XML Is Java's Scripting Language fark:XML Is Java's Scripting Language blogmarks:XML Is Java's Scripting Language Y!:XML Is Java's Scripting Language smarking:XML Is Java's Scripting Language magnolia:XML Is Java's Scripting Language segnalo:XML Is Java's Scripting Language gifttagging:XML Is Java's Scripting Language