Last open documents
Event based programming is fun. It’s simple, clean, and easy; things fall into place when they should.
But when you have a software that lists your recently opened documents, when do you store them? Some do it as you open them (the right way), others when you close the software (the wrong way).
In the events of a power outage (such as I had last night), some of my programs remembered what I opened from the last time they closed properly. I’m thinking UltraEdit (which I otherwise love). OnClose() or equivalent, isn’t always the best place to store stuff for the next session, because :
While you know the software has opened, you never really know when and how it will close.