Patterns

  • submit to reddit

Design Patterns in the Test of Time: Proxy

  A proxy, in its most general form, is a class functioning as an interface to something else. The proxy could interface to anything: a network...

0 replies - 3323 views - 11/24/12 by Ayende Rahien in Articles

Design Patterns in the Test of Time: Decorator

 The decorator pattern is a design pattern that allows behaviour to be added to an existing object dynamically. More about this pattern. I don’t have a...

0 replies - 2501 views - 11/22/12 by Ayende Rahien in Articles

Does the Flyweight Design Pattern Stand the Test of Time?

  A flyweight is an object that minimizes memory use by sharing as much data as possible with other similar objects; it is a way to use objects in...

0 replies - 2742 views - 11/21/12 by Ayende Rahien in Articles

Design Patterns in the Test of Time: Bridge

  The bridge pattern is a design pattern used in software engineering which is meant to "decouple an abstraction from its implementation so that...

2 replies - 5159 views - 11/20/12 by Ayende Rahien in Articles

Design Patterns in the Test of Time: Composite

 The composite pattern describes that a group of objects are to be treated in the same way as a single instance of an object. The intent of a...

2 replies - 2389 views - 11/20/12 by Ayende Rahien in Articles

Design Patterns in the Test of Time: Singleton

  In software engineering, the singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when...

2 replies - 2598 views - 11/19/12 by Ayende Rahien in Articles

Does the Prototype Design Pattern Stand the Test of Time?

  Create objects based on a template of an existing object through cloning. More about this pattern. This is how it looks like: Surprisingly ...

0 replies - 3310 views - 11/19/12 by Ayende Rahien in Articles

Does The Factory Method Stand the Test of Time?

Define an interface for creating an object, but let the classes that implement the interface decide which class to instantiate. The Factory method lets a class...

0 replies - 3474 views - 11/03/12 by Ayende Rahien in Articles

A Modern Alternative to Abstract Factory Filtered Dependencies

I've mentioned before that I really don’t like the Abstract Factory pattern, and in particular, code like this:static IGUIFactory CreateOsSpecificFactory() ...

0 replies - 3149 views - 10/28/12 by Ayende Rahien in Articles

Case Study: Factory Design Pattern

I had a job to check our project code quality. And have to report it back to my team leader for any obstacle that i found in the project.  I found a lot...

0 replies - 3942 views - 10/25/12 by Ronald Daniel in Articles

Do These Design Patterns Stand the Test of Time?: Abstract Factory

Amazon tells me that I purchased this book in Sep 2004, and have since then misplaced it, for some reason. I remember how important this book...

0 replies - 4210 views - 10/23/12 by Ayende Rahien in Articles

The Mediator Pattern

Description: It defines an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to...

0 replies - 4051 views - 10/20/12 by Cristian Chiovari in Articles

The Memento Pattern

Description: The Memento captures and externalizes an object’s internal state so that the object can later be restored to that state. Command can use...

0 replies - 3404 views - 10/20/12 by Cristian Chiovari in Articles

The State Pattern

Description: The State pattern allows an object to alter its behavior when its internal state changes Benefits: Localizes state-specific behavior and...

0 replies - 3249 views - 10/19/12 by Cristian Chiovari in Articles

The Bridge Pattern

Description: Decouples abstraction from implementation. Inheritance tightly couples an abstraction with an implementation at compile time. The Bridge...

0 replies - 4258 views - 10/18/12 by Cristian Chiovari in Articles