SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What Design Pattern can one use on this specific scenario ? Factory?

    We are developing a basic back-end app where people can admin their News, Events, Home Page Highlights, etc... The problem arrives on the following scenario:

    The client (a nursery garden for example) tell us: Beside News, Events, etc... I wish to also manage the Plants of this specific type unique on our Nursery Garden.
    Of course we can well create a model for that on the back-office but, if we do so:

    Issue 1) we have trash our application with some specific stuff that will, almost certainly, not be used by anyone else besides this client;

    Issue 2) If 100 more clients arrive requesting 3 or 6 specific pages to be administrated, this trash get's event worst.


    Can I please request what could be, on your opinion, a proper design pattern to apply here ?

    Thanks in advance

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,633
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    This is generally referred to as creating a plugin framework. You'll end up using lots of design patterns to make it work in the end.

  3. #3
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thks. Not sure if I totally got your answer.
    I was not aware of tjat name, Plugin Framework
    I will search it out.np

    I'm sure one will need several design patterns for doing the all thing.
    I'm Just asking where should I look at regarding this specific case.

  4. #4
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello again,

    Perhaps Plugin Framework isn't what we should look at.
    We already use a framework to develop this "barebone application" if we may called this way.
    We will implement this "barebone application" on each client host depending of their requirements.

    Since, and despite the all common things that they almost all share, like news, events, hightlights on homepage and contact form, we need to find a way to deal with the specific pages they request to have on their site.

    Since we are using an MVC approach, and the point of using an MVC structure is also, to allow easy scalability, can we add a new table and model to that specific case and forget about an "automated" way for doing so ?

    Please advice anything.

    Regards,
    MEM


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •