This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Design Patterns

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 75642
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 75642
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic