Solved

design patterns practical uses

Posted on 2013-11-11
1
378 Views
Last Modified: 2013-11-22
Hi,

I was going through below design pattern examples at link

http://www.avajava.com/tutorials/categories/design-patterns

are these design patterns are enough to learn

Creational Design Patterns

Singleton Pattern
Factory Pattern
Abstract Factory Pattern
Builder Pattern
Prototype Pattern
Structural Design Patterns

Adapter Pattern
Composite Pattern
Proxy Pattern
Flyweight Pattern
Facade Pattern
Bridge Pattern
Decorator Pattern
Behavioral Design Patterns

Template Method Pattern
Mediator Pattern
Chain of Responsibility Pattern
Observer Pattern
Strategy Pattern
Command Pattern
State Pattern
Visitor Pattern
Iterator Pattern
Memento Pattern




If run all these examples am I good shape with all the design patterns. In real life i do not see i am using or applying much of the design patterns myself except may be the frameworks internally using them under-hood.


Which are the most important desing patterns that i need to focous on from the above ling.

please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
1 Comment
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39640665
are these design patterns are enough to learn
Asking that is like me asking you, is this piece of string in my hand long enough? Enough for what? If you are asking this because you want to become a top-notch expect in the "design pattern" field then probably not, but if you are just interested in maybe improving your code slightly to be better structured and easy to understand, then maybe yes it is enough, or maybe even too much. Only you can know that!

What I would say is rather than trying to memorize every little detail about every one of those patterns, just get a very basic idea of even just the groups of patterns (not even each specific one). So that when you are coding, you may better realise that "Oh, I am creating some objects here. Maybe I can apply a 'creation' desing pattern", and you go off and have a look of a few of the creation design patterns and see which fits your needs. Yes, over time you will probably get to know some of them quite well and can just apply them as you are coding.

But as for saying which are more important than others, is not something that we can really do, as it would be entirely different for each particular person and the type of coding/design that they do. What is important to me might not be very important to you.

So yeah, all I would say is to keep writing code, and over time that experience will start to help realise where you can apply patterns and what patterns to apply. I don't believe it's something that someone can just tell you how to do.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question