Design Pattern in .Net – Introduction
Design Pattern in .Net â Introduction
Free Online Articles Directory
Why Submit Articles?
Top Authors
Top Articles
FAQ
ABAnswers
0 && $.browser.msie ) {
var ie_version = parseInt($.browser.version);
if(ie_version Login
Register
Hello
My Home
Sign Out
Email
Password
Remember me?
Lost Password?
Home Page > Computers > Information Technology > Design Pattern in .Net â Introduction
Design Pattern in .Net â Introduction
Posted: Aug 26, 2011 |Comments: 0
|
]]>
Welcome to the series of blogs on Design Patterns. This is introductory blog on design pattern. In this blog I will try to explain definition of design pattern & will try to walkthrough of 3 main categories of design pattern.
Design patterns are tried and tested programs for recurring problems in software programming. These patterns are documented from experience gain from IT industry.
Design patterns are documented best practices for software architecture.
Design pattern is not silver bullet. Many times we have questions that how can we implement design patterns in the project.
My answer to the question is â “You know your project well. Every project is different. Issues are different. Way of approach is different. So take up the design pattern as reference, look into your project problem and try to solve using design pattern.
Understand important fact that “Patterns are for project, project is not for pattern”.
I have seen many times developers are trying to force design patterns in project & it completely masses up the software architecture.
Design patterns are in existence from the long time back.
Even in college time, when it was asked to build sorting algorithm the first answer is “Bubble Sort” pattern. Even though Bubble Sort is there, many times you should use your own algorithm because you know the problem well so don’t try to fit bubble sort if it is not matching your sorting requirement & use your customize algorithm to simplify the project.
]]>
Design patterns are mainly classified in 3 categories.
1. Creational Patterns
2. Structural Patterns
3. Behavioral Patterns
Creational Patterns
When we look at software architecture, one of the big issues in the software architecture is:
How do we control the object creation?
How do we centralize object creation?
Let us say you have 100 of classes in your project & you client code starts creating object. E.g. Inventory object, Account Object, Order Object.
Client code is creating, closing & destroying the objects. In such events,
1. Client code becomes very complicated.
2. Client code is very much heavily tied up with main concrete objects
This leads to heavy coupling with client code & main concrete objects. In order to solve this problem we have creation pattern.
In Creation pattern, we centralize or delegate object creation in different class & this class will be used by client code to get objects.
Structural Patterns
A second big issue in the software architecture is to manage structural changes. E.g. We have Employee class & Phones Class. One employee can have multiple phones. Phone class is aggregated inside the Employee class.
This is the working structure of your project & suddenly your client sends a request saying that Phone & Employee should be independent entity. Here you want to make a structure change but you also want to see that it does affect throughout the project. Here the structure Patterns will come in to the picture.
Behavioral Patterns
Sometimes you want to change behavior of class and make sure that it will not affect the project.
E.g. we have Product class and when you place order we are checking validity period of product and it is 20 days. Now we need to change the behavior of the class and say that it is now 2 months. There is change in behavior of the class but we have to ensure that it does not affect project a lot. It just changes exact place where we need to change or exact entity which we need to change.
All software architecture design issues in line with these three categories. All 3 categories are addressed in design pattern by approx. 40 design patterns.
In coming article we will go through each design pattern and will try to understand each one of them in detail.
Start increasing your traffic today just by submitting articles with us, click here to get started.
Liked this article? Click here to publish it on your website or blog, it’s free and easy!
milindshroff -
About the Author:
Spec-India is Software Development Company that offers Mobile Software Application Development, ASP.Net application Development, HandHeld Computer System Development, Outsourcing Software Development and ASP.Net Framework Application Development.
]]>
Questions and Answers
Ask our experts your Information Technology related questions here…
200 Characters left
What are the design patterns in .net ?
How many types of design patterns in java ?
What are the design patterns used in spring ?
Rate this Article
vote(s)
0 vote(s)
0) {
ch_selected = Math.floor(Math.random()*ch_queries.length);
if(ch_selected == ch_queries.length) ch_selected–;
ch_query = ch_queries[ch_selected];
}
}catch(e){
ch_query = document.title;
}
]]>
Article Tags:
asp net framework application development, mobile software application development, iphone application development, ipad application development
Latest Information Technology Articles
More from milindshroff
Steve Jobs on Apple Design: Breaking Patterns
Jobs on Apple Design: ‘I Want Bob Dylan Songs’
L2 – The Morgan Library
On November 5, L2 and NYU Stern hosted its second-annual Innovation Forum at The Morgan Library in New York City. The full-day event addressed innovation in digital marketing and implications for prestige brands.L2 Forums are the largest gatherings of prestige professionals in North America. (02:21)
How to Crochet a Cross Cable Pattern Part 2/4
Follow this step by step crochet tutorial to crochet a cross cable pattern part 2/4. (05:33)
How to Crochet a Traditional Granny Square Pattern
Follow this step by step tutorial to crochet a traditional Granny Square pattern. (13:09)
How to Crochet a Royal Sunrise Pattern Part 2/8
Follow this step by step crochet tutorial to create a royal sunrise pattern part 2/8. (01:59)
How to Crochet a Royal Sunrise Pattern Part 7/8
Follow this step by step crochet tutorial to create a royal sunrise pattern part 7/8. (00:37)
Carry Your World in Your Hand with Mobile Application Development
Technology is always moving on a constant pace and mobile application development has fetch in a revolution by bringing the worlds in your hand.
By:
Johnl
Internet>
Web Designl
Jun 21, 2011
Web services are always called remotely and are typically invoked using a SOAP request. This architecture by design creates a process boundary that automatically degrades the responsiveness of the Web service.
By:
Kamlesh Patell
Computers>
Softwarel
Jun 13, 2011
Hire Affordable Drupal Developer From Drupal Development Company
Drupal is an Opensource CMS that can be used to develop a number of websites. Drupal development is a search engine friendly. You can Hire Drupal Developer from the Drupal Development Company.
By:
cisakankshal
Computers>
Information Technologyl
Oct 04, 2011
All big companies have got specialised IT departments that take care of their needs. IT-Support is a critical function that is taken very seriously. But if you are a small business owner, having an exclusive IT department may not be all that feasible. But managing technology is important in any business.
By:
Carlson Hol
Computers>
Information Technologyl
Oct 04, 2011
Managing IT in small businesses
Every business today, small or big, requires IT support. If responsive and reliable IT Support is what you are looking for, then there are a few basics to keep in mind. To start with, good IT Management can happen only when you have your basics in place.
By:
Carlson Hol
Computers>
Information Technologyl
Oct 04, 2011
Getting the most out of your IT set up
As a not for profit organisation, you will have lots on your mind. There are endless donor lists, causes, campaigns to be planned and much work to be done. All of this naturally needs the backing of a sound IT set up and, for this, good IT Support is absolutely essential.
By:
Carlson Hol
Computers>
Information Technologyl
Oct 04, 2011
Being smart about IT management
As a not forprofit organisation, all your work is dedicated to the greater good of your cause. You will naturally want to save as much as you can on administration in order to be able to gather more funds. But what most people tend to forget is that without a strong administrative set up, you will tend to have a lot of problems in handling your staff, your donors and even your donations.
By:
Carlson Hol
Computers>
Information Technologyl
Oct 04, 2011
All You Need to Know about Core Data iPhone SDK
Core Data is a powerful Data Model framework, a framework for object management and persistence. It helps developers to manage the lifecycle of objects and object graphs.
By:
milindshroffl
Computers>
Softwarel
Sep 17, 2011
Android App Development- The Advantages of SDK for Developers
Android application development is getting very popular and useful tools for development, due to its best functionalities
By:
milindshroffl
Computers>
Softwarel
Sep 17, 2011
Add new Comment
Your Name: *
Your Email:
Comment Body: *
Verification code:*
* Required fields
Submit
Your Articles Here
It’s Free and easy
Sign Up Today
Author Navigation
My Home
Publish Article
View/Edit Articles
View/Edit Q&A
Edit your Account
Manage Authors
Statistics Page
Personal RSS Builder
My Home
Edit your Account
Update Profile
View/Edit Q&A
Publish Article
Author Box
milindshroff has 3 articles online
Articles Categories
All Categories
Advertising
Arts & Entertainment
Automotive
Beauty
Business
Careers
Computers
Education
Finance
Food and Beverage
Health
Hobbies
Home and Family
Home Improvement
Internet
Law
Marketing
News and Society
Relationships
Self Improvement
Shopping
Spirituality
Sports and Fitness
Technology
Travel
Writing
Computer Forensics
Computer Games
Data Recovery
Databases
E-Learning
File Types
Hardware
Information Technology
Intra-net
Laptops
Networks
Operating Systems
Programming
Security
Software
]]>
Need Help?
Contact Us
FAQ
Submit Articles
Editorial Guidelines
Blog
Site Links
Recent Articles
Top Authors
Top Articles
Find Articles
Site Map
Mobile Version
Webmasters
RSS Builder
RSS
Link to Us
Business Info
Advertising
Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2011 Free Articles by ArticlesBase.com, All rights reserved.
Spec-India is Software Development Company that offers Mobile Software Application Development, ASP.Net application Development, HandHeld Computer System Development, Outsourcing Software Development and ASP.Net Framework Application Development.
