This post originated from an RSS feed registered with Python Buzz
by Jeremy Hylton.
Original Post: Strategy vs. Hook
Feed Title: Jeremy Hylton's Web Log
Feed URL: https://www.python.org/~jeremy/weblog/rss.xml
Feed Description: A techie web log mostly about Python
A colleague has reminded me a second time that a strategy object is
better than a hook method. In principle, I agree, but somehow I fall
back to inheritance and hook methods when I actually start to write
the code. I must make a more conscious effort to use composition
instead of inheritance.