Login    Forum    Register    Search    FAQ

Board index » Computers & Software Engineering » Programming and Web Development » Java Study Group




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Design Patterns introduction
 Post Posted: Mon Feb 15, 2010 1:23 am 
Offline
Active Poster
Active Poster

Joined: Sat Nov 03, 2007 6:54 pm
Posts: 113
Location: Egypt
Real Name: Ashraf Fouda
Year/Dept.: 4th Year CSE

السلام عليكم ورحمة الله وبركاته


Design Pattern is a well known topic in software engineering so here I will introduce some topics about design patterns

Design Pattern


Definition :- Design Pattern has many definitions but a well known one may be “ It is a recurring solution of design problems you see over in your work”
Concepts :- the are some concepts that you will need to be worry about
1- Keep classes separate and prevent them from having to know too much about one another .
2- Program to an interface and not to an implementation .
3- Favor object composition to an interface “Objects inside other object” .
We will begin with the first type of Design Pattern The Creational Patterns :-

Creational Patterns :- it concerns with the best way of creating objects .

1- Factory Pattern :- It Providing a simple decision making class that returns one of several Possible subclass of an abstract base class depending on the data that are provided .
2- Abstract Factory Pattern :- Provide an interface to create and return on of several families of related data
3- The Builder Pattern :- Separate of construction of complex Objects from its representation, so the several different representation can be created depending on the need of the program
4- The Prototype Pattern :- Starts with an initialized and instantiated class and copies or clone it to make a new instance rather than creating new instances .
5- The Singleton Pattern :- Is a class of which there can be no more than an instance. It provides a single global point of access to that instance .
Advantages :-
1- the main advantages of this type is that your program shouldn't depend on how objects are created and arranged .
2- reduce amount of hard coding .

We will choose two Patterns from the above for now in order to complete patterns type and I hope to complete them in the next days the two types will be the most well known ones Factory and Singleton patterns. And then we will complete with the non-creational ones ISA

_________________
قتل امرىءٍ فى غابةٍ جريمةًً لاتغتفر......... وقتل شعبٍ آمنٍ مسالةٌ فيها نظر


Top 
 Profile  
 
 Post subject: Re: Design Patterns introduction
 Post Posted: Fri Feb 19, 2010 9:46 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Tue Dec 05, 2006 8:06 am
Posts: 2395
Location: Egypt
Real Name: Osama Gamal
Year/Dept.: 4th Year CSE
Design patterns is one of the interesting articles I wanna read about..
I have got some books about it .. but I haven't got any time to read it yet :(

_________________
Use whatever floats your boat!
_________________

Osama Gamal M. Attia
4th Year CSE
My Blog

Image



Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 2 posts ] 

Board index » Computers & Software Engineering » Programming and Web Development » Java Study Group


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron