Re: java serialization alternative

Ted Neward <[email protected]> Fri, 4 Apr 2008 00:13:06 -0700
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <00d301c89623$5aac1d30$10045790$@net>
> More than "nil". Despite XML's faults, compared to serialization, at
> least it's human readable and you can manipulate it with other tools.
> Regardless of the data format, you'll be much better off if you can
> statically analyze the structure, something that's fundamentally
> impossible with serialization.
> 
Um.... No. Just because it's in XML doesn't mean it's readable--after all,
have you *seen* what a .NET DataSet turns into when it's serialized?
*shudder* Don't even TRY to go at this with XPath. Ditto for the original
SOAP (0.25 version) formats. Angle brackets do NOT make everything better.

The serialization format is well-known, and relatively easy to reverse
directly from binary if you want/need to. Just because it's binary doesn't
mean it's bad.

Right tool for the job, and all that.

> I'm sorry. but arguing in favor of serialization is on par with
> arguing for Cloneable. :-)
>
Arguing for Cloneable in its Java 1.0 incarnation form, you're right.
Arguing for a marker interface that extracts "cloneability" into a separate
concern, that would seem to be a good thing, to me. In fact, one could even
argue that Cloneable should have been an aspect from the get-go. Know
anybody who's worked on an aspect system that might have agreed with me,
Bob? :-)

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com
 

> -----Original Message-----
> From: Discussion of advanced Java topics. [mailto:ADVANCED-
> [email protected]] On Behalf Of Bob Lee
> Sent: Monday, March 31, 2008 10:08 PM
> To: [email protected]
> Subject: Re: [ADVANCED-JAVA] java serialization alternative
> 
> On Mon, Mar 31, 2008 at 9:52 PM, Jeff Kesselman
> <[email protected]> wrote:
> >  > There are ways around those kinds of problems. I've used things
> like XML
> >  > CLOBs for unstructured parts
> >  Right.... and then your back to Serialization to create the CLOBS or
> BLOBS.
> >
> >  Net value - nil except that you've introduced yet another layer of
> >  complexity into the problem.
> 
> More than "nil". Despite XML's faults, compared to serialization, at
> least it's human readable and you can manipulate it with other tools.
> Regardless of the data format, you'll be much better off if you can
> statically analyze the structure, something that's fundamentally
> impossible with serialization.
> 
> I'm sorry. but arguing in favor of serialization is on par with
> arguing for Cloneable. :-)
> 
> Bob
> 
> ===================================
> This list is hosted by DevelopMentorĀ®  http://www.develop.com
> 
> View archives and manage your subscription(s) at
> http://discuss.develop.com
> 
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.2/1353 - Release Date:
> 3/31/2008 6:21 PM
> 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1358 - Release Date: 4/3/2008
6:36 PM
 

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com