• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design patterns used in the SCJD assignment

 
Robert James Liguori
Author
Ranch Hand
Posts: 553
5
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following design patterns are typically used in the SCJD assignment:

Adapter
Facade
Factory Method
Modified MVC
Proxy
Singleton
Value/Transfer Object

Does anyone utilize the following patterns within their assignment?

Abstract Factory
Bridge
Chain of Responsibility
Command
Composite
Decorator
Flyweight
Interpreter
Iterator
Mediator
Memento
Prototype
State
Strategy
Template Method
Visitor

Note: Check out the free Design Patterns refcard from DZone: http://refcardz.dzone.com/
[ June 22, 2008: Message edited by: Robert Liguori ]
 
rinke hoekstra
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used a singleton, a facade, a value object, and maybe some more without realizing it or knowing the name.

One you didn't mention which I used is the Service Locator pattern.

But I believe patterns are a too much hyped phenomenom. The main goal is to get good sollutions; the use of patterns is at most a guideline, but not a goal in itself. Before deciding to use patterns one should always realize this.
 
Robert James Liguori
Author
Ranch Hand
Posts: 553
5
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To quote Bert and Kathy from Head First Design Patterns, "Instead of code reuse, with patterns you get experience reuse."

Everyone has heard a billion times, "no need to reinvent the wheel"... reusing design patterns is a good thing and (in my opinion) candidates *should* be thinking about different patterns as they design their project.
 
Soroj Margun
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I agree that developer should think and reuse design pattern but in my opinion design pattern is a guideline solution for specific problem. If you run into the problem that can solve with design pattern then you should use it. But not just use design pattern because other people use them. Using too much design pattern not only complicate your code but you may also get side effect of those patterns. Do not forget that nothing is perfect.

And for the question, I use typical pattern plus Abstract Factory (for create different type of connector), Command (for network communication) and Visitor (for record locking) design patterns.
 
Jo�o Batista
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did actually used Strategy pattern without realizing it, while making the search mechanism.
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;

i used
Adapter
Facade
Factory Method
Modified MVC
Proxy
Value/Transfer Object
Decorator

regards.
Mohamed Darim.
SCJP, SCJD ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic