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

Design Patterm Doubt

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have worked on Core Java, JSP, Servlets and Struts. But I don't know Design Patterns. My question is how far the design pattern is useful for developers? or Let rephrase the question, whether the developer has to know design patterns?

Any way, I am in interest of learning Design Patterns. Which is the best book for Design Patterns for beginners?
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Micheal John:
I have worked on Core Java, JSP, Servlets and Struts. But I don't know Design Patterns. My question is how far the design pattern is useful for developers? or Let rephrase the question, whether the developer has to know design patterns?

Any way, I am in interest of learning Design Patterns. Which is the best book for Design Patterns for beginners?



Hi,
I think if you know design pattern,you will know what you are doing and be more clear about your code.Also you will learn the experience from the other gurus.
The struts framework has used many design patterns such MVC,Template Method,Singleton.
For example,when we create a class that extends Action,we write our own execute method,the others is implemented by the Action base class.this is a template method pattern.
For me,the design pattern book that i think is good is the 'head first',the book is easy to read and understand.
Maybe you can have a look at it.
[ November 07, 2006: Message edited by: lin yic ]
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't find the Head First Design Patterns as good as expected, compared to Head First EJB (which I found very useful). Personally, I learned more from reading the original GoF Design Patterns book. They are both good books, though, and either one should teach you what you need.

The HF book only brushes upon som of the patterns in the GoF book. The advantage of the HF book is that it focuses on the patterns that have become most widespread, and only brushes upon the patterns which isn't in widespread use. The advantage of the GoF book is that it covers all patterns well, and it is far easier to look up a pattern in it - as a reference work, it is the superior of the two. As a learning manual - it depends on your personal taste which is the better one.
[ November 07, 2006: Message edited by: �dne Brunborg ]
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
GoF book is in C++ and not as fun as Head First DP,I really liked it and recommend it agains Gof.

I also skimmed through Design Patterns Java Companion,Design patterns Java workbooks,Design Patterns in Java but none has nice samples as Head First.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my opinion, the GoF design patterns should be in the standard toolbox of every serious OO developer.

I found the GoF book a little bit dry to read, though, and found it much easier to understand after having read "Refactoring" by Martin Fowler.

The newer "Agile Software Development - Principles, Patterns and Practices" by Robert C. Martin also is a good introduction to the topic.

Moving to our OO forum...
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Design Patterns are extremely useful, if only to create a common language around developers. I mean, it's easier to say "we need a singleton" than to start describing the singleton pattern everytime it needs to be used.

One thing I found frustrating about the GOF book was the fact that it was language agnostic. If the examples were in Java, I would have found it much easier to read.

Cheers!

-Cameron McKenzie
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cameron Mckenzie wrote: If the examples were in Java, I would have found it much easier to read.

If that's an issue, consider Design Patterns in Java.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also Thinking in Patterns in Java which is free online. I only gave it a quick read a while ago and didn't think it added much to the "dryness" of the GOF even though all the examples are in Java. Let us know if you like it.
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic