Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2009, 07:24 AM
Member
 
Join Date: Dec 2008
Posts: 27
Rep Power: 0
ajeeb is on a distinguished road
Default Java design patterns
Hi,
What are the most important java design patterns that one should know ? I mean the design patterns that are implemented in the industry ?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 03-03-2009, 07:34 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,488
Rep Power: 8
Fubarable is on a distinguished road
Default
Hm, I know that I see Observer, Strategy, and Factory (including Abstract Factory) patterns all the time. Also the Java IO classes are based on the Decorator pattern. But I'm relatively new at using design patterns.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-03-2009, 07:52 AM
Member
 
Join Date: Dec 2008
Posts: 27
Rep Power: 0
ajeeb is on a distinguished road
Default
Any particular site you can recommend for the same ? Thanks in advance.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-03-2009, 08:36 AM
Senior Member
 
Join Date: Jan 2009
Posts: 360
Rep Power: 2
toadaly is on a distinguished road
Default
The O'Reilly head start design patterns book is pretty good. As far as sites go, wiki has quite a bit regarding design patterns, and it's pretty good. One of my coworkers actually wrote quite a few of the design pattern wikis.

As far as what is important, it depends on your peers. The main purpose of design patterns is to write robust code that others can understand and modify - while preventing yourself form reinventing the wheel over and over.

My guess is that Iterator is the most relevant pattern, and it's one of the 'gang of four' patterns.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 03-03-2009, 06:10 PM
Steve11235's Avatar
Senior Member
 
Join Date: Dec 2008
Posts: 972
Rep Power: 2
Steve11235 is on a distinguished road
Default
For any type of application using a user interface, Model-View-Controller (MVC) is a basic pattern. I suggest studying that first, even if you are not doing a GUI right now. The concepts there will create a framework for understanding other patterns.

The other thing I suggest is looking at is UML (Unified Modeling Language). Unfortunately, much of the material on the Web is to esoteric, but a good understanding of Object Oriented modeling will help you understand how to create meaningful classes. The biggest problem I see is programmers who cram the logic of several classes into one big one. It seems easier at first, but as soon as that class grows, it's out of control. Many small classes, each of which implements a single object's methods and properties, end up being far easier.

UML for Java Programmers by Robert Martin is an excellent book. His best advice: Get rid of the PC-based UML tool, use a piece of paper and a pencil, and throw the paper away once you understand what you are doing. In other words, his advice is very pragmatic.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Mashup API - Design Patterns Questionnaire goldeneyeone Reviews / Advertising 0 02-10-2009 11:03 PM
Design Patterns - Basics (I) JavaForums Java Blogs 0 02-09-2008 11:26 PM
Design patterns Freddie New To Java 2 05-12-2007 07:21 AM


All times are GMT +2. The time now is 05:51 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org