• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Patterns wanted for examples

 
Ranch Hand
Posts: 458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone have any patterns that they would be willing to share? I'd like to see some good examples to learn from.
Thanks, Ray
 
Trailboss
Posts: 23453
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To really describe patterns well requires some UML. I'll see how I can do with text:
The most popular pattern is the Singleton Pattern. This is where you have only one instance of a class. Usually, there is a method called getInstance() or getSingleton() or something similar. It will have a static variable that starts off as null and when getInstance is called it tests for the null. If null, a new instance is created and returned. Otherwise, the current instance is returned. This way, you are guaranteed that there will always be one instance.
Maybe we should start a new thread for each pattern? I could do a few more. Factory, Decorator, State and Strategy come to mind.
 
Ray Marsh
Ranch Hand
Posts: 458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UML
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unified Modeling Language
 
paul wheaton
Trailboss
Posts: 23453
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UML is where you draw pictures that represent classes, objects, methods, etc. If you are trying to describe some OO data construct, it's a lot easier with UML.
UML is the language of modern software architects. This is the best way to move an architectural idea from your head to someone else's head.
Patterns help even more. Rather than taking ten minutes to describe, say, a decorator pattern to someone, you just say "we'll use a decorator pattern".
 
Ray Marsh
Ranch Hand
Posts: 458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any relationship between UML and visual developement tools, i.e. Visual Age for Java or Visual Cafe?
 
paul wheaton
Trailboss
Posts: 23453
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think some IDE's are starting to come out with UML stuff, but no, that isn't their main gig.
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are visual tools which use UML, such as Together/J, ( http://www.togethersoft.com/ ) but the "visual" in most visual tools refers only to graphical creation of GUIs.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A neat new tool to do class diagrams and reverse/forward engineering that I just discovered is JaVISION from Object Insight. You can get a trial version from www.object-insight.com. It doesn't include all the functionality of a Together/J or Rose, but is simple, quick, and very easy to use (and puts out some great class diagrams).
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I disagree ,patterns started without any tie up to any modelling language later on they converged. I have been implementing patterns for a year or so and I don't know UML at all.

Originally posted by Paul Wheaton:
To really describe patterns well requires some UML.

 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic