Thread: Software Factories resources

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    450

    Software Factories resources

    Can anyone point me to a good tutorial on factories. Google isn't helping.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    I saw that not quite what I'm looking for. I'm looking for a tutorial on factories used in inheritance hierarchies and with the use of abstract classes. I have a glimmer taken form Barjne Strostrups C++ Programming Language Chapter 12 Localizing Object Creation and am looking for further resources. ps free resources

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    I found the information I was looking for. Reading further about Design Patterns I found that one of the patterns is the Abstract Factory Pattern. This pattern essentialy controls the creation of a family of class depending upon the needs of a client.

    I am considering how to use this in conjuction with a bridge pattern to create the appropriate implementation for an abstract class Beverage whose implementation uses an abstract class BeverageUserInterface as part of the bridge pattern. My idea is the concrete implementations of BeverageUserInterface which could be dialogs or console i/o or other widgets etc would be created by a abstract factory BUISelector. This may be a bit of overkill but somehow the client must specify the way Beverages will display themselves, i.e. which concrete implementation to compose the Beverage class with, and read data.

    I also have am creating a beverageMaker class that creates the various types of beverages depending on type specified and returns a *Beverage don't think this is appropriate for the use of a factory. I am still iffy on both the bridge and factory patterns and will need a while to digest what I have read

    .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Decent TV recording software - ideas?
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-04-2009, 08:20 PM
  2. Software Design/Test - Redmond, WA
    By IRVolt in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 06-11-2008, 10:26 AM
  3. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  4. Adding trial period to software
    By BobS0327 in forum C Programming
    Replies: 17
    Last Post: 01-03-2006, 02:13 PM