Policy Based Design In Python
I was very impressed by the policy based design described in Modern C++ Design by Andrei Alexandrescu and tried it successfully in some light weight programs. Now I have to write a
Solution 1:
My aim is to develop an auctioning system and I want to be able to choose the auction strategy - English, Dutch, Silent, etc - at run time.
You could just use strategy pattern (also known as the policy pattern) to accomplish exactly this.
You could also use mixins to provide the strategy instead of composition.
Post a Comment for "Policy Based Design In Python"