This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Design Patterns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Design Patterns" Watch "Design Patterns" New topic
Author

Design Patterns

Mikael Fox
Greenhorn

Joined: Mar 22, 2009
Posts: 23
Hello everyone,
I just fall on an article on design patterns. They said that if you want to become a good programmer, you must follow design patterns. But till now I have never follow these patterns. I don't even know how to use design patterns, they said that there are 23 in total but how to use them and where to use design pattern? Please take the case of a chat application, for me to understand it well.

Thanks a advance.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

Hello design patterns are indeed a good thing to know for designing apps and programming. But able to use the patterns effectively takes lots of practice. Sometimes you are using design patterns that you didn't even know about.

There are in fact 23 GoF (Gang of Four) design patterns and another set called J2EE core patterns from Sun. And a whole much more less common ones. I recommend the following books on design patterns:
* Gamma, Helm, Johnson, and Vlissides (1994). Design Patterns: Elements of Reusable Object-Oriented Software
* Grand (2002). Patterns in Java, Volume 1: A Catalog of Resuable Design Patterns Illustrated with UML, 2nd Edition
* Kuchana (2004). Software Architecture Design Patterns in Java free PDF version
* Alur, Crupi and Malks (2003). Core J2EE Patterns: Best Practices and Design Strategies, 2nd Edition
* Marinescu (2002). EJB Design Patterns: Advanced Patterns, Processes, and Idioms

The first one the GoF book. For a beginning you should read the Grand book and the Kuchana book. I read both of these some time back and both covers the 23 GoF in java language. The actual GoF book is in C++.

If you are into J2EE then the other 2 books are good references.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38046
    
  22
Gang of Four book
Spoof Gang of Four book. By far the most entertaining to read
Head First book
Shalloway and Trott
Go to our books page, search on "design patterns" and see whether there are any reviews. If you click the link you can go to Amazon and buy the book there and Amazon pay JavaRanch a few cents commission.
Mikael Fox
Greenhorn

Joined: Mar 22, 2009
Posts: 23
Thanks a lot for the answers, I will read the book and will let you know if i have any queries, thanks a lot.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38046
    
  22
You're welcome
 
Consider Paul's rocket mass heater.
 
subject: Design Patterns
 
Similar Threads
Am I qualified to take SCJD test??
passed SCWCD with 98% today
Exam Questions: Design Patterns used with EJB
Design patterns
Which Design pattern to use