Giter Club home page Giter Club logo

dotnet_designpatterns_behaviouralpatterns's Introduction

Dotnet_DesignPatterns_BehaviouralPatterns

Demonstration of various Behavioural Design Patterns


Developed with Visual Studio 2015 Community


###Techs

Tech
C#
Visual Paradigm

###Design Patterns

Pattern Description UML Included
Strategy Pattern Simulates various payment options for a shopping cart Yes
Chain of Responsibility Pattern Simulates project approval based on budget size Yes
Observer Pattern Simulates investor notification when stock prices change Yes
Command Pattern Simulates file access commands (open, close, etc...) Yes
Iterator Pattern Demonstrates iteration through a collection of objects & an IEnumerator implementation Yes

Strategy Pattern

Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.


Chain of Responsibility Pattern

Chain of responsibility pattern is used to achieve loose coupling in software design where a request from client is passed to a chain of objects to process them. Then the object in the chain will decide themselves who will be processing the request and whether the request is required to be sent to the next object in the chain or not.


Observer Pattern

Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

Observer design pattern is useful when you are interested in the state of an object and want to get notified whenever there is any change. In observer pattern, the object that watch on the state of another object are called Observer and the object that is being watched is called Subject.


Command Pattern

Encapsulates a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.


Iterator Pattern

Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation


###More Resources

Title Author Website
.NET Design Patterns dofactory
Architecture and patterns Andras Nemes dotnetcodr
Creational Design Patterns CShapster
patterns & practices MSDN
Design Patterns in Java TutorialsPoint
Java Design Patterns Pankaj JournalDev

dotnet_designpatterns_behaviouralpatterns's People

Contributors

apollo013 avatar pauljamesmillar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.