Tags » Design Pattern

Gang of Four : Observer Design pattern in Ruby


The observer pattern is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their  683 more words


C# - Command and Query Responsibility Segregation (CQRS) pattern

When it’s a small project, we use CRUD pattern and it works:

CRUD pattern – use one DTO to do both Read and Write to database. 52 more words


Design patterns and practices in .NET: the Strategy Pattern


The strategy pattern is one of the simplest patterns to implement. Have you ever written code with ugly if-else statements where you check some condition and then call another method accordingly? 1,036 more words


Design patterns and practices in .NET: the Factory Patterns - concrete, static, abstract


Factories are extremely popular among design patterns. I have never seen any reliable statistics on the usage of patterns but factories must be among the top three most used patterns. 1,848 more words


Paper Folded Bridges and Satellites

It is easy to tear a single sheet of paper – and nearly impossible to rip a whole stack of them. Building on this simple observation, researchers at Georgia Tech, the University of Illinois, and the University of Tokyo created structurally engineered… 43 more words


Visitor Pattern


Definition 1

In object-oriented programming and software engineering, the visitor design pattern is a way of separating an algorithm from an object structure on which it operates.

35 more words

Template Method Pattern


Definition 1

In software engineering, the template method pattern is a behavioral design pattern that defines the program skeleton of an algorithm in a method, called template method, which defers some steps to subclasses.

20 more words