Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Using Grok to Walk Like a Duck

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,734
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 27, 2008

PyCon 2008 Talk by
Mr. Brandon C Rhodes (Georgia Tech)

Grok provides tools for general-purpose application design. Reuse in Python often involves teaching an old class new tricks: adding attributes or methods to allow the class to function in a new environment that its author had not anticipated. A simple coding example is enough to illustrate that the three traditional Python approaches to this problem are burdened by significant limitations. The talk will examine the concept of an "adapter", an industrial-strength design pattern which solves every problem burdening the other three approaches — but which makes it necessary to call the adapter constantly from your code! The talk therefore concludes by introducing Grok, whose ability to register and dynamically invoke your adapters will remove all mention of them from your code while leaving you in full control of how classes are adapted.

Slides: http://rhodesmill.org/brandon/adapters/

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • the sound is too low

  • Problems with sound and with seeing the slide show.

    It is really a shame, I would have loved to watch/hear this one.

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • Come on pople, How can you expect me to watch this thing?! you should learn with the confreaks guys

  • I disagree with "untested code is broken code". Just build around existing code like a black box. If the API is simple, what more do you need?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more