Which pattern to use

From: al (allin_at_168.net)
Date: 12/21/03


Date: Sun, 21 Dec 2003 07:23:54 GMT

In the following two situations, I'd like to hear your advices about which
patterns to use.

1. Two third-party libraries, which have very similar functionality, and two
corresponding wrapper classes created for both of them. One or the other
will be used in final executable building.

2. Three types of devices and all for collecting data. One or two functions
of them could be the same, for example, processing_data(). Thus, three
classes could be needed for each device(at least). One or two more
different types of devices could be added or to replace "old" ones.

Thank you very much!



Relevant Pages

  • Re: Which pattern to use
    ... Two third-party libraries, which have very similar functionality, and two ... I need both classes to have the /same/ interface, ... What patterns allow two things to have the same interface? ...
    (comp.object)
  • Re: Building a "snap-in" framework
    ... If I understand you correctly, you're right in that patterns may be helpful, ... You want to have a framework running and then be able to just have the user ... go into some screens and ta-da they've got new functionality. ... a database. ...
    (microsoft.public.dotnet.framework)
  • Re: projects in progress
    ... the program does except that you can't put your own measurements in or print patterns, but otherwise you see the full functionality of the program. ...
    (alt.sewing)
  • Re: Newbie: Joining Lists
    ... filenames = filenames + glob.glob# Is there a better ... If you don't need all the functionality of `glob.glob` you can write a ... simple function that takes multiple file name patterns: ...
    (comp.lang.python)