Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>Using <a href="http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29">design patterns</a> with Java is a well-established topic. Design patterns also apply to Groovy:</p> <ul> <li>some patterns carry over directly (and can make use of normal Groovy syntax improvements for greater readability)</li> <li>some patterns are no longer required because they are built right into the language or because Groovy supports a better way of achieving the intent of the pattern</li> <li>some patterns that have to be expressed at the design level in other languages can be implemented directly in Groovy (due to the way Groovy can blur the distinction between design and implementation)</li> </ul> <h3>Patterns</h3> <img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2NoaWxkcmVuOmV4Y2VycHQ9dHJ1ZXxhbGw9dHJ1ZX0&locale=en_GB&version=2" data-macro-name="children" data-macro-parameters="all=true|excerpt=true"> <h3>References</h3> <ol> <li>Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995). <em>Design Patterns: Elements of Reusable Object-Oriented Software</em>. Addison-Wesley. ISBN 0-201-63361-2. <ul> <li><em>The canonical reference of design patterns.</em></li> </ul> </li> <li>Martin Fowler (1999). <em>Refactoring: Improving the Design of Existing Code</em>. Addison-Wesley. ISBN 0-201-48567-2.</li> <li>Joshua Kerievsky (2004). <em>Refactoring To Patterns</em>. Addison-Wesley. ISBN 0-321-21335-1.</li> <li>Eric Freeman, Elisabeth Freeman, Kathy Sierra, Bert Bates (2004). <em>Head First Design Patterns</em>. O'Reilly. ISBN 0-596-00712-4. <ul> <li><em>A great book to read, informative as well as amusing.</em></li> </ul> </li> <li>Dierk Koenig with Andrew Glover, Paul King, Guillaume Laforge and Jon Skeet (2007). <em>Groovy in Action</em>. Manning. ISBN 1-932394-84-2. <ul> <li><em>Discusses Visitor, Builder and other Patterns.</em></li> </ul> </li> <li>Brad Appleton (1999). <a href="http://www.cmcrossroads.com/bradapp/docs/pizza-inv.html">Pizza Inversion - a Pattern for Efficient Resource Consumption</a>. <ul> <li><em>One of the most frequently used patterns by many software engineers!</em></li> </ul> </li> <li><em>Design Patterns in Dynamic Languages</em> by Neil Ford. Houston Java User's Group. Examples in Groovy and Ruby. <a href="http://www.hjug.org/present/Neal_Ford-Design_Patterns_in_Dynamic_Languages-slides.pdf">http://www.hjug.org/present/Neal_Ford-Design_Patterns_in_Dynamic_Languages-slides.pdf</a></li> </ol> <p>See also: <a class="confluence-link" href="/display/GROOVY/Refactoring+with+Groovy" data-linked-resource-id="78707" data-linked-resource-type="page" data-linked-resource-default-alias="Refactoring with Groovy" data-base-url="http://docs.codehaus.org">Refactoring with Groovy</a></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced