Solved

design patterns practical uses

Posted on 2013-11-11
1
354 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
hash value 2 39
array220 challenge 8 48
mockito example issue 8 38
Java Loop 6 25
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now