code review based on what I learned from D

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 5 02:37:02 PDT 2015


On Sun, 05 Jul 2015 19:01:59 +1200, Rikki Cattermole wrote:

> Failing gracefully. Not something most developers do.

usually that is not related. i mean that if program entered invalid 
state, it may be too late to save user data. it may be even undesirable 
to do so, as the data may be already corrupted.

what the good program should do (i think) is storing "working log", so if 
it crashed, the log can be replayed from the last saved state, restoring 
all the work. maybe with the option that allows the log to be replayed 
partially, to avoid endless crashes.

besides, it will be possible to send the document and the log to 
developers, so they can reproduce the exact bug.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150705/9f61a4d1/attachment.sig>


More information about the Digitalmars-d-learn mailing list