Giter Site home page Giter Site logo

rahulkg31 / design-patterns Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 392 KB

This project provides concise examples of commonly used design patterns, demonstrating their implementation and illustrating their usage.

Java 100.00%
adapter-pattern builder-pattern decorator-pattern design-patterns facade-pattern factory-pattern java maven mvc mvc-pattern observer-pattern singleton-pattern strategy-pattern

design-patterns's Introduction

design-patterns

This project demonstrates some of the commonly used design patterns.

  1. Singleton Pattern:

    Singleton pattern ensures that a class has only one instance and provides a global point of access to it.

  2. Factory Pattern:

    Factory Pattern provides an interface or abstract class for creating objects, but the specific type of object creation is delegated to concrete factory classes.

  3. Builder Pattern:

    Builder Pattern helps in creating complex objects in a step-by-step manner, making the construction process more flexible and maintainable.

  4. Adapter Pattern:

    Adapter Pattern helps in achieving interoperability between classes with incompatible interfaces, allowing them to work together seamlessly.

  5. Decorator Pattern:

    Decorator Pattern allows you to add new features or behavior to an object without modifying its underlying code.

  6. Strategy Pattern:

    Strategy Pattern is like having multiple strategies to solve a problem, and you can choose which strategy to use based on the situation.

  7. Facade Pattern:

    Facade pattern provides a unified interface to a set of interfaces in a subsystem. It defines a higher-level interface that makes the subsystem easier to use.

  8. Observer Pattern:

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

  9. Model-View-Controller (MVC) Pattern:

    MVC pattern separates an application into three main components: Model (data and business logic), View (presentation layer), and Controller (handles user input and updates the Model and View).

design-patterns's People

Contributors

rahulkg31 avatar

Stargazers

 avatar

Watchers

 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.