The Artima Developer Community
Sponsored Link

Python Buzz Forum
Strategy vs. Hook

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jeremy Hylton

Posts: 193
Nickname: jhylton
Registered: Jun, 2003

Jeremy Hylton is a core Python developer.
Strategy vs. Hook Posted: Mar 11, 2005 4:25 PM
Reply to this message Reply

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
Latest Python Buzz Posts
Latest Python Buzz Posts by Jeremy Hylton
Latest Posts From Jeremy Hylton's Web Log

Advertisement

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.

Read: Strategy vs. Hook

Topic: generator-based graph algorithms - take 1 Previous Topic   Next Topic Topic: Picking random items from

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use