Fog Creek Software
Discussion Board

nor error nor exceptions are transactional

IMHO, the problem in the DoSomething() code, and in Joel's return value code is that none of the offer to reverse a bad operation.

However Joel says that if you replace DoThing() to file copy and DoOtherThing() to registry entry, and one of them fails than you should revert eg the filecopy. However in his example he also forget to revert, he also just leaves the state of the machine as is.

Thursday, October 16, 2003

*  Recent Topics

*  Fog Creek Home