Idiomatic python vs. idiomatic Java

Dec 3, 2004 20:09 · 102 words · 1 minute read

Phillip Eby came across a Python app developed by Java folks and wrote about what he saw: Python Is Not Java. I agree with his points, except the one about XML.

I don’t think XML should be used for a lot of the things it’s used for in Java. XML APIs in Java are generally quite painful to work with. If you need a little bit of dynamic nature in your Java app, use BeanShell, Groovy or Jython.

And don’t use XML as your data model. Ick. Use Java objects! XML is a great interchange format… leave it where it belongs.