• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding learning of Java Design Patterns

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I want to start learning java design patterns. Can any one help me on how to start for the same. Because, I know some design patterns which is used in my current project. But I want to learn on how to design an application when requirements are being given.

Please help !!
 
Ranch Hand
Posts: 2187
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of the most important aspects about object-oriented design patterns is that they are independent from any specific programming language or implementation. Object-oriented design patterns can be implemented with any object-oriented programming language. To refer to the patterns as "Java Design Patterns" is not accurate simply because they could be implemented with Java. The same patterns could be implemented with C++ as well.
 
Greenhorn
Posts: 14
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You say you want to learn to design an application, and to learn design patterns. Note that these are 2 different things. If you know a lot of design patterns, that is not enought to design an application. Your application should not consist of a lot of design patterns put together. Don't get 'pattern happy'. You design an application, and when you encounter a problem for which someone has documented a reusable solution (a design pattern), you apply that pattern. The real trick is learning to recognize these recurring problems.
 
Bartender
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should probably read some books on this stuff, as there are lots of them around. The classic text is "Design Patterns" by Gamma, Helm, Johnson and Vlissides (the "gang of four"), which has lots of patterns including many you may never need. For a quick start that will focus on the more commonly used patterns, try the excellent "Head First Design Patterns" by Freeman and Freeman. Craig Larman's book "Applying UML and Patterns" is good too, although it covers UML and OO design in general, not just patterns.

However, be careful about how you use patterns. I've worked on a few projects where people have basically used every pattern they could find in all the Java JEE sample applications, regardless of whether the project actually needed them.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes try Head First excellent book very good explanations relating to real world problems.
 
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I liked Design patterns in java by Steven John Metsker and William C. Wake

 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alain Utrillo,
Your post was moved to a new topic.
 
reply
    Bookmark Topic Watch Topic
  • New Topic