• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Pattern

 
Mihie Shim
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got SCJP Dec. 2002. I have been busy doing other stuff. I just started reading a book "The Sun Certified Java Develper Exam with J2SE 1.4" by Mehran Habibi. In the beginning, it is mentioning about "Design Pattern" - Tip: A great place to begin researching design patterns is the Portland Pattern Repository, which is located at http://c2.com/ppr/.
I don't think I am really willing to read them all. Is it really helpful for SCJD??
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michelle
Welcome to JavaRanch.
It is possible to complete the assignment and pass without having any knowledge of design patterns. However I think knowing about the patterns will help you in design decisions, both in the assignment and in real work projects.
If you stay in this forum, you will see the following patterns (and others) discussed as solutions to different issues on a regular basis:
  • Model-View-Controller,
  • Facade,
  • Decorator,
  • Factory,
  • Adapter,
  • Singleton,
  • Multiton,
  • Observer-Observable


  • Note that these are not in any particular order, and I have no doubt forgotten a few.
    Regards, Andrew
    [ July 10, 2003: Message edited by: Andrew Monkhouse ]
     
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17278
    6
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I have no doubt forgotten a few

    Looks pretty well covered to me.
    Mark
     
    Max Habibi
    town drunk
    ( and author)
    Sheriff
    Posts: 4118
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I would also add mediator, but otherwise, Andrew's list looks great.
    M
     
    Tony Collins
    Ranch Hand
    Posts: 435
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I thought about mediator, how is it different from controller ?
    I assumed mediater was one place where all events get handled, which I also thought was a controller.
    Cheers
    Tony
     
    Max Habibi
    town drunk
    ( and author)
    Sheriff
    Posts: 4118
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    There doesn't have to be a difference, though in practice, there often is. A mediator is there to make your life easier, say by doing the messy grunt work. For example, when you post an http request, some object, somewhere, has to mine the actually http protocol and turn it into an Request. That guy is the mediator. He could also happen to be the guy that decide what the next business function should be, in which case he'd be the controller too. However, that's not commonly what he does: hence, the distinction.
    HTH,
    M
    [ July 10, 2003: Message edited by: Max Habibi ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic