Archive for the ‘Java’ Category

Something that could easily be missed when programming in Java is inadvertently exposing the internals of a supposedly encapsulated field to clients of your class. Consider the following naive implementation of a rectangle class that disallows negative dimensions: public final class MyRectangle { private final Dimension dim; public MyRectangle(Dimension dim) { if( dim.height < 0 [...]

JavaWorld has announced the winners of the JavaWorld 2002 Editors’ Choice Awards. These are the results (with my predictions ;)) Best Java Data Access Tool: Winner: Oracle 9iAS TopLink Finalists: CocoBase Enterprise O/R 4.5, Hibernate 1.2.4 My prediction: N/A Best Java IDE: Winner: IntelliJ IDEA 3.0 Finalists: Borland JBuilder 8.0, Eclipse 2.1 My prediction: Borland [...]

  • Comments Off

Design Patterns ebook

In: Java

31 May 2003

I came across this great free ebook entitled the The Design Patterns Java Companion available here. I’m not sure why it is free, but it seems a legitimately free copy seeing as JavaCoding.net links to it prominently. I’m barely past the first chapter and skimmed through it quite a bit, and it seems to be [...]

DAML/XSLT update

In: Java

30 May 2003

Following up on my previous post on the DAML/XSLT Adapter. It seems to do quite a good job at translating a DAML document into XML format, but it does choke when a complex ontology is used. Among other things, it produces <null> tags when it encounters certain DAML tags, and trips up when translating tags [...]

  • Comments Off

The Digester component of the Jakarta Commons project is an extremely useful and well-designed package that allows you to parse XML files at a higher level of abstraction in Java. This allows developers to concentrate on processing XML rather than get unnecessarily involved in parsing functions. With Digester, you can use simple matching patterns and [...]

  • Comments Off