[XOM-interest] How to make the object of nu.xom.Document may toserialize ?
Elliotte Rusty Harold
elharo at metalab.unc.edu
Mon Dec 10 18:26:43 EST 2007
Serialization is like inheritance: it looks simple and easy, but it's
not. Making classes Serializable is a lot of work that severely
restricts your implementation flexibility going forward; and, unless
you're very careful, it opens up a lot of potential security and
correctness holes. The marginal benefits simply don't come close to
balancing the major costs.
Serialization is one of several technologies I used to think looked
cool, but that's just proven too dangerous and error prone for practical
work. I'd estimate 90%+ of serializable classes I encounter make at
least one and usually more than one serious mistake.
--
Elliotte Rusty Harold elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
More information about the XOM-interest
mailing list