Permission or Forgiveness?

Python
Location: D135
Average rating: ***..
(3.88, 8 ratings)

I’ll start by introducing the motto “It’s easier to ask forgiveness than permission” and the woman who used it, Rear Admiral Grace Murray Hopper, also known as the “mother of Cobol” and the author of the first ever programming-language compiler.

I then move on to the Python context, where the motto supports the proper usage of exception-catching rather than preliminary checks; and the “rule that proves the exception” introduced by abstract base classes.

Expanding the subject, I show how “optimistic concurrency” applies that motto (while locking would “ask permission”, in essence, software transactional memory “asks forgiveness”), and how collision-detection focused networking protocols have similarly triumphed over more highly structured, “ask permission” ones like token-ring.

Moving to the fuzzier context of real life, I then show how this daring action-centric approach does not work quite as well as in the technical realm—except when applied correctly, in the right circumstances… and I try to evince a general law describing what the right circumstances for its application are, comparing and contrasting with the similar issue of “do it right the first time” versus “launch and iterate” (and the latter’s cognate “fail, but fail fast” principle).

Photo of Alex Martelli

Alex Martelli

Google

Alex Martelli wrote “Python in a Nutshell” and co-edited “Python Cookbook”. He’s a PSF member, and won the 2002 Activators’ Choice Award and the 2006 Frank Willison Award for contributions to the Python community. He works as Senior Staff Engineer for Google. You can read some PDFs and watch some videos of his past presentations.

Anna Martelli Ravenscroft

Self

Pythonista, Urban Homesteader, mom, geek, alumna

Comments on this page are now closed.

Comments

07/23/2012 11:41pm PDT

It makes you think…

07/18/2012 5:27pm PDT

PDF is available at: www.aleax.it/oscon12_fop.pdf

07/18/2012 5:23pm PDT

Slides will be available shortly. Thanks for asking.

Picture of Jon Guidry
07/18/2012 3:12pm PDT

Hi there – will you be posting a link to slides on here? Thanks!

Sponsors

For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at (707) 827-7065 or scordesse@oreilly.com.

Download the OSCON Sponsor/Exhibitor Prospectus.

View a complete list of OSCON contacts