Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Design pattern suggestion

Design pattern suggestion

Scheduled Pinned Locked Moved Design and Architecture
databasedesignregexarchitecturequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    majee
    wrote on last edited by
    #1

    In my site, there is registration fee for membership. Now the registration fee is constant so that i put it in the web config file. Sometimes the client requirement will change by add an option to edit the fee. Then I will prefer to move it into database. So i have to implement the function to get the fee regardless where it resides. Please suggest me which design pattern is suitable for this scenario? Thanks and regards, Majee

    L 1 Reply Last reply
    0
    • M majee

      In my site, there is registration fee for membership. Now the registration fee is constant so that i put it in the web config file. Sometimes the client requirement will change by add an option to edit the fee. Then I will prefer to move it into database. So i have to implement the function to get the fee regardless where it resides. Please suggest me which design pattern is suitable for this scenario? Thanks and regards, Majee

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The strategy-pattern[^], where you'd create an concrete strategy that can be replaced :)

      "Our software isn't released, it escapes leaving a bloody trail of testers behind it."

      M 1 Reply Last reply
      0
      • L Lost User

        The strategy-pattern[^], where you'd create an concrete strategy that can be replaced :)

        "Our software isn't released, it escapes leaving a bloody trail of testers behind it."

        M Offline
        M Offline
        majee
        wrote on last edited by
        #3

        Thanks Eddy, I have implemented the strategy pattern. I am afraid my classes caused little bit over kill though it is not the problem of design patterns. Thanks and regards, Majee

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups