Passive data structure: Difference between revisions

Content deleted Content added
Fix typo in name of "is_pod" macro.
Owino (talk | contribs)
m I have added a term which means the same thing in another field (computer science).
Line 1:
{{no footnotes|date=March 2013}}
{{sections|date=March 2013}}
In [[object-oriented programming]], '''plain old data structure''' ('''PODS'''), or '''plain old data''' ('''POD''') is a term for a [[Record (computer science)|record]], to contrast with objects. That is, a PODS is a [[data structure]] that is represented only as passive collections of [[Field (computer science)|field]] values ([[instance variable]]s), without using [[object-oriented]] features. In Computer Science, this is known as '''passive data structure'''<ref name ="psd">{{cite journal|last=Black|first=Paul E.|coauthors=Vreda Pieterse|title=passive data structure|journal=Dictionary of Algorithms and Data Structures|year=2007|url=http://www.nist.gov/dads/HTML/passiveDataStruc.html|accessdate=11 September 2014}}</ref>.
 
Plain old data structures are appropriate when there is a part of a system where it should be clearly indicated that the detailed logic for data manipulation and integrity are elsewhere. PODSs are often found at the boundaries of a system, where information is being moved to and from other systems or persistent storage and the problem ___domain logic that is found in other parts of the system is not relevant. For example, PODS would be convenient for representing the field values of objects that are being constructed from external data, in a part of the system where the semantic checks and interpretations needed for valid objects have not yet been applied.