locked
ASP.NET Design Pattern RRS feed

  • Question

  • User-1097017955 posted

    Hi Experts,

    I am new to Design Pattern in ASP.NET.

    I have gone through most of article on Google.

    I need to know what exactly it is? Why it is come into existing?

    From scratch, I want to clear my concepts.

    Thanks.

     

     

     

     

    Tuesday, March 30, 2010 6:53 AM

Answers

  • User-1071856410 posted

    Hi VijayJadhav,

    If you have gone through most of the articles on Google you must already have an idea about Design Patterns.

    In Simple terms, Design patterns are time-tested solutions to recurring design problems.

    The below definition form dofactory is self explanatory

    "Design patterns are recurring solutions to software design problems you find again and again in real-world application development. Patterns are about design and interaction of objects, as well as providing a communication platform concerning elegant, reusable solutions to commonly encountered programming challenges."

    Some advatages of using Design Patterns are

    1. They provide you with a way to solve issues related to software development using a proven solution.
    2. They facilitates development of highly cohesive modules with minimal coupling and makes the overall system easier to understand and maintain.
    3. They provides design reuse, which is more powerful than code reuse (and often brings code reuse with it)
    4. They makes the overall system easier to understand and maintain.
    5. Systems designed with patterns make it easy to transform an application of one pattern to an application of another


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 30, 2010 7:59 AM
  • User-1818814851 posted

    However You can use design patterns in asp.net applications also. when you design business layer you can apply design patterns if you are familiar. here is the other usefull link which explains about design patterns with examples.

    http://weblogs.asp.net/cumpsd/archive/tags/Design+Patterns/default.aspx?PageIndex=1



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 30, 2010 11:30 AM
  • User-952121411 posted

    Most of the design patterns you spoke of are the "GOF" (Gang of Four) patterns, and you might want to take a look at the following books, if you ever get a chance:

    Design Patterns: Elements of Reusable Object-Oriented Software: 

    http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612

    Head First Design Patterns:

    http://www.amazon.com/Head-First-Design-Patterns-Freeman/dp/1600330541/ref=sr_1_1?ie=UTF8&s=books&qid=1269964584&sr=1-1

    Take note that these design patterns are not ASP.NET specific, and can be applied in a multitude of OO languages.  Here are some links that may also offer assistance on these patterns:

    Design Patterns:

    http://www.dofactory.com/Patterns/Patterns.aspx

    Design Patterns:

    http://en.wikipedia.org/wiki/Design_Patterns

    Hope this helps! Smile

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 30, 2010 11:59 AM

All replies

  • User-1071856410 posted

    Hi VijayJadhav,

    If you have gone through most of the articles on Google you must already have an idea about Design Patterns.

    In Simple terms, Design patterns are time-tested solutions to recurring design problems.

    The below definition form dofactory is self explanatory

    "Design patterns are recurring solutions to software design problems you find again and again in real-world application development. Patterns are about design and interaction of objects, as well as providing a communication platform concerning elegant, reusable solutions to commonly encountered programming challenges."

    Some advatages of using Design Patterns are

    1. They provide you with a way to solve issues related to software development using a proven solution.
    2. They facilitates development of highly cohesive modules with minimal coupling and makes the overall system easier to understand and maintain.
    3. They provides design reuse, which is more powerful than code reuse (and often brings code reuse with it)
    4. They makes the overall system easier to understand and maintain.
    5. Systems designed with patterns make it easy to transform an application of one pattern to an application of another


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 30, 2010 7:59 AM
  • User-1097017955 posted

    Hi muhammedsalimp,

    Thanks for the reply and such good details.

    It seems "Design Pattern" is used to design your system, which can be reusable (recurring).

    It has many sub items like,

    1) Factory Method

    2) Builder

    3) Abstract Factory

    4) Singleton

    5) Prototype

    What are those? Where to use which one?

    Is MVC pattern comes under Design Pattern?

    Is there any other Design Pattern in ASP.NET?

    How to implement it in ASP.NET?

    Hope, your are getting me!

    Thanks.







    Tuesday, March 30, 2010 8:46 AM
  • User-1704326042 posted

    Hello muhammedsalimp,

    Design patterns are a concept, which apply to different technologies.

    For ASP.NET, patterns are MVC, MVP, and others. MVC is a technology pattern, meaning it is specific to asp.net or jsp or other technologies.

    On the other hand, if we take asp.net MVC, inside this pattern, we will be able to use the patterns you listed. MVC (Model view controller), in MVC, we can use the abstract factory to design our controller engine.

    Try and think about, technology design patterns, and language design patterns, and also, in general, simply design patterns.

    I hope this helps.

    Everyone, feel free to reply, if you disagree

    Best Regards

    Tuesday, March 30, 2010 10:41 AM
  • User-1097017955 posted

    Hello formationusa,

    Thanks for the reply.

    Really, good details.

    Thanks.


    Tuesday, March 30, 2010 10:50 AM
  • User-1818814851 posted

    However You can use design patterns in asp.net applications also. when you design business layer you can apply design patterns if you are familiar. here is the other usefull link which explains about design patterns with examples.

    http://weblogs.asp.net/cumpsd/archive/tags/Design+Patterns/default.aspx?PageIndex=1



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 30, 2010 11:30 AM
  • User-952121411 posted

    Most of the design patterns you spoke of are the "GOF" (Gang of Four) patterns, and you might want to take a look at the following books, if you ever get a chance:

    Design Patterns: Elements of Reusable Object-Oriented Software: 

    http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612

    Head First Design Patterns:

    http://www.amazon.com/Head-First-Design-Patterns-Freeman/dp/1600330541/ref=sr_1_1?ie=UTF8&s=books&qid=1269964584&sr=1-1

    Take note that these design patterns are not ASP.NET specific, and can be applied in a multitude of OO languages.  Here are some links that may also offer assistance on these patterns:

    Design Patterns:

    http://www.dofactory.com/Patterns/Patterns.aspx

    Design Patterns:

    http://en.wikipedia.org/wiki/Design_Patterns

    Hope this helps! Smile

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 30, 2010 11:59 AM
  • User-1097017955 posted

    Hey guys,

    Sorry for bit late reply.

    Yes, thanks. Got it.

    Thank you very much!




    Monday, April 5, 2010 1:49 AM