Click here to Skip to main content
14,269,494 members

Design and Architecture

 
QuestionHandling Optimistic Concurrency Violations Pin
Kevin Marois6-Jul-18 8:37
professionalKevin Marois6-Jul-18 8:37 
AnswerRe: Handling Optimistic Concurrency Violations Pin
Eddy Vluggen6-Jul-18 10:24
mveEddy Vluggen6-Jul-18 10:24 
GeneralRe: Handling Optimistic Concurrency Violations Pin
Kevin Marois6-Jul-18 10:34
professionalKevin Marois6-Jul-18 10:34 
GeneralRe: Handling Optimistic Concurrency Violations Pin
Eddy Vluggen6-Jul-18 10:36
mveEddy Vluggen6-Jul-18 10:36 
AnswerRe: Handling Optimistic Concurrency Violations Pin
jschell16-Jul-18 15:58
memberjschell16-Jul-18 15:58 
QuestionPython 2.7: Best way for processes to log to single log file Pin
ninjaef5-Jul-18 21:39
memberninjaef5-Jul-18 21:39 
AnswerRe: Python 2.7: Best way for processes to log to single log file Pin
Eddy Vluggen6-Jul-18 10:26
mveEddy Vluggen6-Jul-18 10:26 
QuestionMemento pattern and releasing resources Pin
Abivarius3-Jul-18 9:47
memberAbivarius3-Jul-18 9:47 
Hi everybody. I have a question about Memento pattern.

Let's suppose we have a class which's state has to be saved and later restored, and we resorted to the Memento pattern for that.

What if the state includes resources that have to be explicitly released (like file handles, OpenGL textures etc)?

Should I make them part of the saved state? This necessitates to handle memento objects in a special manner: if memento was restored, then it's up to the originator class to handle the resources, if memento is dropped, then it has to clean up itself. Pretty entangled logic.

How would you implement Memento when state has resources to be released?

Should I apply Memento at all when object state includes OS resources that have to be released?
GeneralRe: Memento pattern and releasing resources Pin
Richard MacCutchan4-Jul-18 1:07
protectorRichard MacCutchan4-Jul-18 1:07 
AnswerRe: Memento pattern and releasing resources Pin
Gerry Schmitz4-Jul-18 8:03
mveGerry Schmitz4-Jul-18 8:03 
AnswerRe: Memento pattern and releasing resources Pin
Eddy Vluggen4-Jul-18 8:57
mveEddy Vluggen4-Jul-18 8:57 
AnswerRe: Memento pattern and releasing resources Pin
Nathan Minier10-Jul-18 2:45
professionalNathan Minier10-Jul-18 2:45 
QuestionPython: how doI "select / switch in" a module/class to use at runtime Pin
ninjaef3-Jul-18 0:09
memberninjaef3-Jul-18 0:09 
AnswerRe: Python: how doI "select / switch in" a module/class to use at runtime Pin
Richard MacCutchan3-Jul-18 2:13
protectorRichard MacCutchan3-Jul-18 2:13 
GeneralRe: Python: how doI "select / switch in" a module/class to use at runtime Pin
ninjaef3-Jul-18 3:24
memberninjaef3-Jul-18 3:24 
GeneralRe: Python: how doI "select / switch in" a module/class to use at runtime Pin
Richard MacCutchan3-Jul-18 4:26
protectorRichard MacCutchan3-Jul-18 4:26 
GeneralRe: Python: how doI "select / switch in" a module/class to use at runtime Pin
ninjaef3-Jul-18 7:14
memberninjaef3-Jul-18 7:14 
GeneralRe: Python: how doI "select / switch in" a module/class to use at runtime Pin
Richard MacCutchan3-Jul-18 8:25
protectorRichard MacCutchan3-Jul-18 8:25 
QuestionMy Entity Framework Design Pin
Kevin Marois2-Jul-18 7:14
professionalKevin Marois2-Jul-18 7:14 
AnswerRe: My Entity Framework Design Pin
Richard Deeming2-Jul-18 8:17
mveRichard Deeming2-Jul-18 8:17 
GeneralRe: My Entity Framework Design Pin
Kevin Marois2-Jul-18 8:30
professionalKevin Marois2-Jul-18 8:30 
GeneralRe: My Entity Framework Design Pin
Richard Deeming2-Jul-18 9:00
mveRichard Deeming2-Jul-18 9:00 
GeneralRe: My Entity Framework Design Pin
Kevin Marois2-Jul-18 10:15
professionalKevin Marois2-Jul-18 10:15 
GeneralRe: My Entity Framework Design Pin
Kevin Marois4-Jul-18 17:33
professionalKevin Marois4-Jul-18 17:33 
GeneralRe: My Entity Framework Design Pin
Richard Deeming5-Jul-18 1:27
mveRichard Deeming5-Jul-18 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.