Skip to content

This repo contains the structures as per the given requirements.. Creating boiler plates of most common problems will help in understanding how design goals are achieved and what are their various trade offs!

Notifications You must be signed in to change notification settings

LearningsLab/BoilerPlates

Repository files navigation

BoilerPlates

This repo only contains the Low Level designs for given requirements

Web Link

https://learningslab.github.io/BoilerPlates/

Few Designs Included

  • Design a Task Planner
    • Class Diagram
    • Boiler Plate Code
  • Design a Snake and Ladder
    • ClassDiagram
    • Boiler Plate Code
  • Design a Parking Lot
    • Boiler Plate Code
    • Working Code
  • Design Splitwise
    • Boiler Plate Code
  • Design a Login library
    • Boiler Plate Code

To be added

  • Design a Delivery Route Service for Warehouses/Kitchens
  • Design a Subscription Service
  • Design a Tic Tac Toe
  • Design a Chess Game
  • Design Google Photos
  • Design Data Migrator Tool
  • Design a Job Scheduler
  • Design a Web Crawler

Common Design Pattern Use Cases

Adapter Design Pattern

  • It combines the two incompatible interfaces/components so that client or other code changes can be avoided

Builder Design Pattern

  • When we have multiple attributes which can just explode the no of constructors of that class. Using Builder Pattern we can just create the immutable object.

Factory Design Pattern

  • when we need to create different types of objects in the application. Factory pattern helps in organising the code

Fly Weight Design Pattern

Singleton Design Pattern

  • when we just need to have single object of the class thoughtout the application

Decorator Design Pattern

Strategy Design Pattern

Prototype Design Pattern

Proxy Design Pattern

Want to Contribute ??

Add/Update a Design Problem

  • Goto Branch gh-pages
  • Create a md file of the problem
  • Add Different sections Like
    • Requirements
    • Transaltion to Model/Services
    • Use Case Diagram
    • Class Diagram
    • Code Link
    • Design Trade Offs
  • Raise the PR for gh-pages branch

Add/Update a Diagram/Code

  • Goto Branch main
  • Goto Directory of the design problem
  • Add the class diagram for the requirements given for the problem in gh-pages branch
  • Raise the PR for main branch

About

This repo contains the structures as per the given requirements.. Creating boiler plates of most common problems will help in understanding how design goals are achieved and what are their various trade offs!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published