design patterns


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 12 of 12

Thread: design patterns

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Posts
    13

    design patterns

    Hi as a assignment i have been given about 30 classes and have been asked to look for design patterns in them.

    Can anyone tell me if there are any programs out there that might help me to do this?

  2. #2
    Join Date
    Oct 2005
    Posts
    107
    I doubt it.

    But you should post the ones you aren't sure on.

  3. #3
    Join Date
    Nov 2003
    Posts
    13
    I have drawn up a copy of the class diagram(attached) to try to help me find some patterns, but none seem obvious, apperently there are only five in there.

    Can anyone else see any ?
    Attached Files Attached Files
    Last edited by homer1; 01-13-2006 at 06:04 AM.

  4. #4
    Join Date
    Nov 2003
    Posts
    13
    If anyone can help me with this i would be really helpful, i've been looking all day.

    So far i have only managed to find the most obvious pattern the facade pattern.

    CAn anyone see anymore?

  5. #5
    Join Date
    Oct 2005
    Posts
    107
    RMI is a classic remote proxy design pattern but you can't really see it from just uml.

  6. #6
    Join Date
    Nov 2003
    Posts
    13
    How is proxy used in RMI?

    Are there any others in there? I'm really struggling with this.

    Can people also confirm that facade pattern and mvc pattern are in it and tell me where so i know i'm getting this correct, as i'm not 100% sure. i'm very new to this.

    thanks for all your help so far though
    Last edited by homer1; 01-13-2006 at 04:35 PM.

  7. #7
    Join Date
    Oct 2005
    Posts
    107
    RMI = Remote Method Invocation

    the stub in RMI provides a local representative for an object residing on a remote host. Which is basically the intent of a proxy... To provide a placeholder that represents another object.

    Facade pattern intent...Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use. So this could be the VideoDataAccessor interface (how does your uml show an interface???)

    As far as MVC goes...there is the model (the video database or remote object)...there is a view (the video panel, etc.)...the controller then manipulates the model based on user input through the view.

    Design patterns are hard to learn. I suggest reading as much as possible and going through lots of example code.

    Hope this helps a little...

  8. #8
    Join Date
    Nov 2003
    Posts
    13
    Thanks for that Joe Beam, that was really helpful. That does help alot but i don't really understand your explanation of the Proxy pattern, i will be sure to do some more reading on it.

    Unfortunatley i'm not a keen reader as i am dyslexic, i prefer help to come from direct sources, like the help you have just given me.

    Thank you

    This means that i only have to find 2 more patterns, if anyone can help me spot them i would be very greatful.

    My initial research has indicated the there are 100's of design patterns and asking us to try to find 5 of these is the given code is a little unfair.

  9. #9
    Join Date
    Nov 2003
    Posts
    13

    Talking

    I can't believe i forgot to add these 2 class diagrams.

    Can anynoe tell me if there are any design patterns in these that i have missed?

    i don't seem to be able to see any in these.
    Attached Files Attached Files
    • File Type: zip 1.zip (92.0 KB, 111 views)
    • File Type: zip 2.zip (12.8 KB, 115 views)

  10. #10
    Join Date
    Nov 2003
    Posts
    13
    I still haven't found any more patterns.

    is looking at uml diagrams the best way to find design patterns?

  11. #11
    Join Date
    Oct 2005
    Posts
    107
    When I was in school, I always had to look for them just by going through source code. And it was more of an open discussion as opposed to an assignment.

    You could make a case for the flyweight pattern with the way VideoRecordings are broken up with the Duration and Track classes...It's a stretch but if your scraping for something.

    http://www.fluffycat.com/Java-Design...rns/Flyweight/

  12. #12
    Join Date
    Dec 2005
    Posts
    48
    The open source project named YAZD is a good example for pattern.

Similar Threads

  1. Excellent Java Design Patterns pdfs
    By callimar in forum Java
    Replies: 0
    Last Post: 07-02-2003, 07:24 PM
  2. ANN: Archetype, OO and design patterns tool released
    By John Hancock in forum vb.announcements
    Replies: 0
    Last Post: 05-14-2002, 11:31 PM
  3. Dynamic Class Loading & Design Patterns
    By Zeb Fropiaz in forum Java
    Replies: 1
    Last Post: 03-29-2002, 07:02 PM
  4. Dynamic Class Loading & Design Patterns
    By Zeb Fropiaz in forum Java
    Replies: 0
    Last Post: 03-17-2002, 11:57 AM
  5. Design patterns
    By Ronadl in forum VB Classic
    Replies: 1
    Last Post: 09-15-2000, 05:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center