Tag Archives: Software Sagacity

C# Design Patterns: #6 – Adapter

AdapterThe Adapter pattern helps provide a better way to leverage existing code.  Instead of requiring the developer to redesign components from scratch, the Adapter can integrate work from previous projects or other libraries.
Continue reading

RSS Twitter LinkedIn Facebook Email

C# Design Patterns: #5 – Builder

BuilderThe Builder pattern is a narrowly-focused pattern that enables incremental creation of new products. This pattern, though limited in application, when applied correctly, brings significant power and flexibility.

The guiding concept behind the Builder pattern is separation of the actual “building” of an product from its design plan. The prototypical example of the builder pattern is saving files to multiple formats. If an application allows saving files to different formats, it will have an internal representation of the data, and will need to “build” different formats dynamically from the same source object.
Continue reading

RSS Twitter LinkedIn Facebook Email