Pages

Saturday, October 26, 2013

1. Design Patterns - Introduction

In this topic we are going to see about the introduction part of design patterns like purpose, importance and its benefits. So lets jump start.

What is design patterns and its purpose?
                         "Design patterns" one of the best practices which is commonly used  by object - oriented developers. It solves the problems of real world problems  and helps the developers to develop a easy reusable code components.

Benefits of  Design Patterns.

     Here is the list of Benefits

  1. Code readability: They do help you write more understandable code with better names for what you are trying to accomplish.
  2. Code maintainability: Allows your code to be maintained easier because it is more understandable.
  3. Communication: They help you communicate design goals among programmers.
  4. Intention: They show the intent of your code instantly to someone learning the code.
  5. Code re-use: They help you identify common solutions to common problems.
  6. Less code: They allow you to write less code because more of your code can derive common functionality from common base classes.
  7. Tested and sound solutions: Most of the design patterns are tested, proven and sound.


Types of Design Patterns



As illustrated in the above, the design patterns are categories into three types; such as

1. Creation Patterns

      These design patterns provides way to create objects while hiding the creation logic, rather than instantiating objects directly using new operator. This gives program more flexibility in deciding which objects need to be created for a given use case.

2. Structural Patterns
      
     These design patterns concern class and object composition. Concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalists.

3. Behavioral Patterns
     
     These design patterns are specifically concerned with communication between objects.

All these design pattern concepts are fall in these categories. In forthcoming post, I am going to explain each design patterns and its sole purpose. So keep watching this blog. I am going to update on this post.

Your comments are welcome.

No comments:

Post a Comment