Welcome! Log In Create A New Profile

Advanced

Serializer pattern?

Posted by 32127812 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Serializer pattern?
October 16, 2008 06:54PM
Please help me out here guys I am confussed. In which design pattern does the serializer pattern fall? As it is responsible for reading and writing of objects into a file, so I think it falls under a structural design pattern.
Re: Serializer pattern?
October 16, 2008 07:17PM
I would say that it is more of a behavioral pattern as the definition for these patterns includes "to assign responsibility or roles to certain classes" which is what you're doing: assigning the responsibility of persistence to another class.
Re: Serializer pattern?
October 16, 2008 07:50PM
I agree with Steven
Re: Serializer pattern?
October 16, 2008 08:00PM
Thanks guys
Re: Serializer pattern?
October 17, 2008 06:35AM
One could argue that it's a creational patterns since it facilitates writing to disk/network and then reading it to re-create it.

Wikipedia defines creational patterns as:
"... patterns that deal with object creation mechanisms."
Re: Serializer pattern?
October 17, 2008 06:47AM
However only 50% of the pattern deals with object creation so IMHO, that pattern can't be defined as creational if only half the concept applies. I stick with defining it as behavioral because although part of it may be constructing objects, it still delegating responsibility of object persistence to another class (oe classes).
avatar Re: Serializer pattern?
October 17, 2008 07:03AM
-deleted-
Re: Serializer pattern?
October 17, 2008 07:11AM
without the writing, reading won't be possible
Sorry, only registered users may post in this forum.

Click here to login