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. Web Development
  3. ASP.NET
  4. how to select design patterns

how to select design patterns

Scheduled Pinned Locked Moved ASP.NET
designtutorial
5 Posts 5 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.
  • A Offline
    A Offline
    anoop_m83
    wrote on last edited by
    #1

    how to select design patterns according to project

    T B K P 4 Replies Last reply
    0
    • A anoop_m83

      how to select design patterns according to project

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      It is mostly about experience. Design patterns get their name from their repetitive nature. When you have seen one type of problem often enough you can tell when a similar solution would apply. Patterns can be at very different levels of the software architecture though. A pattern like the Party pattern is pretty high level and implies data models. A pattern like Observer can be much lower level and might only apply to an event on a single control like a button click or it could be very high level and be applied to a message queue in an enterprise service bus. Be careful about patterns. They can be a lot like fads. When Microsoft released the MVC framework tons of people decided that they had to shove all their projects into that pattern. But if you only ever have one view and that view has to re-implement a lot of the business rules that would also go in the model (client side validators in the view and further validation in the domain objects), you aren't buying yourself much.

      1 Reply Last reply
      0
      • A anoop_m83

        how to select design patterns according to project

        B Offline
        B Offline
        Brij
        wrote on last edited by
        #3

        anoop_m83 wrote:

        how to select design patterns according to project

        Obiously, its is based on the requirement. At the time of design, one should decide, what pattern best suits for the requirement. At some point, tailoring of an existing pattern ,might be required also.

        Cheers!! Brij Visit my Blog: http://brijbhushan.net
        Check my latest Article :ViewState - Various ways to reduce performance overhead

        1 Reply Last reply
        0
        • A anoop_m83

          how to select design patterns according to project

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #4

          Find a design patterns book/website, implement them, and understand why and when they are used. Then decide if any are applicable to your project given your requirements. Each design pattern is a solution to a problem, not a solution looking for a problem. The original Gang of Four (GoF) patterns each had a specific use in mind. The idea behind the book was that if you had a problem there is probably some commonly used solution which can be applied without needing to re-invent the wheel. A second advantage is that the patterns were given names which developers can use as a kind of shorthand e.g. "I'll us a singleton class" as opposed to "I'll need to write a class to make sure that only one instance of it exists". The problem is design patterns have become the latest thing, so everyone wants to say they use design patterns. Additionally there has been a design pattern explosion too (negating the "shorthand" effect). That's not to say there is anything wrong with the original research, just the way it has been taken up by the dev community.

          Sort of a cross between Lawrence of Arabia and Dilbert.[^]

          1 Reply Last reply
          0
          • A anoop_m83

            how to select design patterns according to project

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            Start off by working out what you actually want your project to do, and how you want it to work. Once you know that, you need to break the application down into smaller areas and start thinking about how to compartmentalize the different aspects of the app. Don't get hung up on designing for patterns; let it come naturally.

            I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

            Forgive your enemies - it messes with their heads

            My blog | My articles | MoXAML PowerToys | Onyx

            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