CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Peter's Gekko

public Blog MyNotepad : Imho { }

An idea waiting for a commit

As a yearly recurring event around TechEd Europe Juval Löwy did a presenation for dotned, the Dutch user group. It was a fascinating talk, for two hours we have been bombarded with some very fascinating idea's.

 

Juval's main message is "the is no such thing as recovery code". Your application starts in a certain well described state. As soon as your code starts fiddling with that state you app's state is unknown and should be hidden to the outer world. At a certain moment the code should say "this is it" and commit that state. Or it should say "oops" and roll back to the previous well defined state. That's programming in transactions. Any attempt to try to fix something in your own recovery code is (in Juval's words) futile. At the moment the only tools which support transactions are the better database servers. You mark the start of a transaction, start fiddling and commit the updates to the database or rollback all changes.

Now wouldn't it be lovely to write all your code like that ? Yes it would. But I have a problem with further exploring the subject. In the talk we've been a sounding board for some very fascinating ideas on this. But we've been asked to zip our mouths'. It's still in review, when ready you're going to read all about it in the near future. I hope I'm not bringing Julian (or myself) in any trouble by even mentioning this talk... I just hope to have stirred your curiosity and, most of all, have motivated you to go to user group meetings yourself.

Any questions ?



Comments

Raymond Lewallen said:

He has a wine class on his presentation table. Your meetings must be a lot more fun than ours :)
# July 5, 2005 6:03 AM

pvanooijen said:

:) Beleive it or not, it's filled with water. There were drinks after the presentation. For me it was a cola, had a 200km drive to get home :(
# July 5, 2005 11:39 AM

JosephCooney said:

I'm not so sure that everything (especially in this brave new service-oriented world) can be transactional - especially after reading this: http://www.eaipatterns.com/ramblings/18_starbucks.html
# July 7, 2005 11:52 PM

pvanooijen said:

Nice story. I agree, not everything should be transactional. But at this moment the only thing you can handle fully transactional are operations against a database. Juval's story explained how to expand the range of possible transactions beyond db's.
# July 8, 2005 12:08 AM

Peter's Gekko said:

For my app I needed a back button. Internet explorer and other browsers have back buttons, most mice...
# July 19, 2005 1:30 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!

This Blog

Syndication

News