Design Patterns

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ]

Articles
Books
  

Articles:
  • Dynamic Behaviors in Java by Greg Anderson   - [Clicks: 58]
    Dynamic Behaviors is a design pattern similar to the Chain of Responsibility pattern that allows applications to change object behavior at runtime by attaching special class instances to the objects being modified. This article presents a Java implementation of this pattern that eases the addition of plain-old-Java-object (POJO) behavior objects to class instances.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-12-2004/jw-1227-behavior.html - Dec, 2004
  • Holiday Party Guide to Patterns by Elisabeth Freeman   - [Clicks: 68]
    A survey of some of the Gang of Four design patterns: Composite, Singleton, Factory, Adapter, Decorator, Facade, and MVC.
    http://today.java.net/pub/a/today/2004/12/23/patterns.html - Dec, 2004
  • Mutable/Immutable Patterns by Mikael Grev   - [Clicks: 25]
    Should the information your class holds be changeable or not? Mikael Grev guides you through design patterns to help you understand and make the most of Java mutability.
    http://www.javalobby.org/articles/immutable/index.jsp - Nov, 2004
  • Principles, Patterns, and Practices: The Strategy, Template Method, and Bridge Patterns by Robert C. Martin   - [Clicks: 67]
    One of the great benefits of object-oriented programming is polymorphism. Perhaps no pattern illustrates this better than the Strategy pattern.
    http://today.java.net/pub/a/today/2004/10/29/patterns.html - Oct, 2004
  • The Singleton as a Network Management Pattern by Stephen B. Morris   - [Clicks: 30]
    Stephen B. Morris shows how the Singleton pattern can be used to create a single point of access to functionality on a network system.
    [Includes sample code]
    http://www.onjava.com/pub/a/onjava/2004/10/27/NMSingleton.html - Oct, 2004
  • Java GoF Creational Design Patterns by Puneet Sangal   - [Clicks: 57]
    A design pattern is a solution to a recurring problem. Although using patterns this way is well known and has been around for a while, it was only when the GoF wrote their famous book, Design Patterns, on software design patterns, that patterns slowly but surely became an industry standard.
    http://www.sys-con.com/story/?storyid=46239&DE=1 - Sep, 2004
  • Java Patterns and Network Management by Stephen B. Morris   - [Clicks: 18]
    Patterns are often used to solve common problems in software developments, but this approach is also applicable to deploying and managing networks. Stephen B. Morris shows how this approach can help solve problems in this complex field.
    [Includes sample code]
    http://www.onjava.com/pub/a/onjava/2004/08/25/nmpatterns.html - Aug, 2004
  • Agile Software Development: Principles, Patterns,and Practices -- The Adapter Pattern by Robert C. Martin   - [Clicks: 46]
    To break the dependency of a client upon a server when you can't modify the server, the Adapter pattern is an alternate approach to last month's Abstract Server pattern. The class and object versions of this pattern are offered, and the article ends with an anonymous inner class implementation.
    http://today.java.net/pub/a/today/2004/08/17/patterns.html - Aug, 2004
  • The Chain of Responsibility pattern's pitfalls and improvements by Michael Xinsheng Huang   - [Clicks: 101]
    The classic Chain of Responsibility (CoR) pattern requires the individual chain node classes to decide whether the next node should be called to fulfill the chain's responsibility. This is a design flaw because, in practice, such a call can be easily forgotten. In this article, CoR implementations of Microsoft Windows global hook and Java servlet filter framework are used as examples to demonstrate that flaw. A solution is proposed, and an action chain that allows multiple actions to handle an HTTP request in the Struts framework is discussed.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-08-2004/jw-0816-chain.html - Aug, 2004
  • A Generic MVC Model in Java by Arjan Vermeij   - [Clicks: 64]
    Model-View-Controller (MVC) is a widely used design pattern, especially popular in graphical user interface (GUI) programming. JDK 1.5 introduces parameterized types, or generics. Combining the two allows for a generic implementation of the MVC design pattern, freeing the programmer from writing code that handles the registration and notification of listeners, as well as from writing getter and setter methods for the properties of models. This article shows how this can be accomplished.
    [Includes source code]
    http://www.onjava.com/pub/a/onjava/2004/07/07/genericmvc.html - Jul, 2004
  • The Mysteries of Business Object - Part 1 by Samudra Gupta   - [Clicks: 44]
    Business Objects are present in any real-life application. In the world of application architecture, Business Objects are a constant challenge to the designers to achieve the right level of granularity and reusability. The myths surrounding the Business Objects often blur the focus and bloat the system design. In this series, we will attempt to clear the cloud surrounding the Business Objects. In the first part, we cover the ground work of defining Business Objects, and compare different strategies for implementing them. Also, we shall discuss embedding business logic and data validation with Business Objects and see how to expose Business Objects to the client application.
    http://javaboutique.internet.com/tutorials/businessObject/ - Jun, 2004
  • Validating value objects by Sascha Frevel   - [Clicks: 49]
    Value objects are single parameters used to combine a set of objects—in most cases, various parameters supplied for a method call. The parameters describe a large number of attributes, which usually are individually checked and most often only checked if equal to null. Normally, these checks are hooked to numerous lines of code. This article describes how to implement value objects based on the famous Visitor pattern and reflection.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-06-2004/jw-0614-validate.html - Jun, 2004
  • Agile Software Development: Principles, Patterns,and Practices - The Abstract Server Pattern by Robert C. Martin   - [Clicks: 23]
    Our first foray into the world of design patterns should involve a very simple pattern. This will allow us to talk about design patterns in general, rather than having to focus upon the intricacies of a particular pattern. Abstract Server is one of the simplest of the design patterns -- so it's a good place for us to start.
    http://today.java.net/pub/a/today/2004/06/8/patterns.html - Jun, 2004
  • Keep Changes Small: A Happy Jack Story by Michael Ivey   - [Clicks: 5]
    How do you reconcile the calls from agile processes for constant refactoring and integration with demands to deliver huge new pieces of functionality? In a sort of cubicle-era Socratic dialogue, Michael Ivey shows how developers can learn to do big things.
    http://today.java.net/pub/a/today/2004/04/27/smallchanges.html - Apr, 2004
  • Let decorated Commands take over by Ricky Yim   - [Clicks: 39]
    One of the characteristics of software maintenance is having historical or other constraints imposed on your development approaches. This article shows the technique of applying two very popular patterns, Decorator and Command, in the context of maintaining a billing application. This technique assists in overcoming such constraints, while helping maintain business logic in a modular, transparent, and highly testable manner.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-04-2004/jw-0412-deccommand.html - Apr, 2004
  • Three approaches for decorating your code by Michael Feldman   - [Clicks: 44]
    In this article, Michael Feldman explains the three ways to implement the Decorator design pattern: inheritance, wrapper, and external. During his discussion, he presents the pros and cons of each implementation.
    http://www.javaworld.com/javaworld/jw-04-2004/jw-0412-decorator.html - Apr, 2004

[Top]

Books:
  • Head First Design Patterns  by Elisabeth Freeman, Eric Freeman, Bert Bates, Kathy Sierra   - [Clicks: 35]
    If you've read a Head First book, you know what to expect--a visually-rich format designed for the way your brain works. Using the latest research in neurobiology, cognitive science, and learning theory, Head First Design Patterns will load patterns into your brain in a way that sticks. In a way that lets you put them to work immediately. In a way that makes you better at solving software design problems, and better at speaking the language of patterns with others on your team.
    O'Reilly Media, Inc., Paperback - Oct, 2004

[Top]