Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Design pattern to use in Preview mode?

I have to provide a functionality where the people should be able to preview changes to their profiles before making them permanent. This includes the layout, the text, friends, top friends, photos, etc. The user can go into "preview mode" and review different configurations before making one live.

My question is which could be the best design patter to use?

Thanks a lot!

like image 779
user1881185 Avatar asked Dec 10 '12 05:12

user1881185


1 Answers

I guess that this is a job for the Memento pattern

Here, you can find some clear explanations: http://sourcemaking.com/design_patterns/memento

like image 61
Charles-Édouard Coste Avatar answered Oct 18 '22 18:10

Charles-Édouard Coste