Using Grok to Walk Like a Duck (#77)

Mr. Brandon C Rhodes (Georgia Tech) bio
30min Intermediate
categories: advocacy, best-practices, object orientation, technique, web framework, zope

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.


Files:
slides
filesizeuploadedcomment
FurtherResources.html 178 bytes Sun, March 16th, 11:58 a.m. Link to slides and source code.




# Permalink