Use of the Visitor pattern and possible over engineering
https://softwareengineering.stackexchange.com/questions/67759
-
31-10-2019 - |
문제
I am developing a small application in .NET and am thinking of using XML to save the object model.
My first thought was to separate the model and the generation of XML by using the Visitor pattern. The class would walk the object hierarchy and create the XML. But then I thought about the Extreme Programming method and the "you ain't gonna need it" (YAGNI) principle.
I don't envisage needing to create another Visitor to output the data in some other way (it's a simple app) I just want to use a human readable format to save the application's data.
Should I use the Visitor pattern or am I just over engineering the solution?
올바른 솔루션이 없습니다
제휴하지 않습니다 softwareengineering.stackexchange