Git Product home page Git Product logo

lld's Introduction

LLD

Overview

LLD stands for low-level design and the goal here is to code different components of a system. Specifically, the idea here is to design classes, their members and the interaction among them. The prime focus while doing this is to take care of following principles -

  1. Correctness
  2. Readability
  3. Extensibility

OOPS

  1. Inheritance
  2. Polymorphism
    2.1 Compile-time (Function Overloading)
    2.2 Runtime or dynamic (Function Overriding)
  3. Encapsulation
  4. Abstraction
  5. Association, Aggregation and Composition

Object modelling using UML diagram

  1. Class diagram (Structural UML)
  2. Sequence, usecase, activity diagrams (Behavioral UML)

SOLID Principles

  1. https://en.wikipedia.org/wiki/SOLID
  2. https://www.youtube.com/watch?v=HoA6aZPR5K0
  3. https://www.freecodecamp.org/news/solid-principles-explained-in-plain-english/
  4. Separation of concerns - https://en.wikipedia.org/wiki/Separation_of_concerns (Microservices as an example)

Design Patterns

https://en.wikipedia.org/wiki/Software_design_pattern

Types

  1. Creational - Singleton, Factory, Prototype, Builder
  2. Structural - Facade, Adaptor, Decorator, Proxy
  3. Behavioural - Observer, Strategy, Iterator, Chain of responsibility

Which design pattern to pick?

Problems

  1. Design logger
  2. Design slf4j
  3. Design a rate-limiter
  4. Design a cache
  5. Design publisher subscriber
  6. Design producer consumer
  7. Design a tic-tac-toe https://www.youtube.com/watch?v=gktZsX9Z8Kw
  8. Design a parking lot
  9. Design an elevator https://github.com/eMahtab/design-an-elevator-system
  10. Design a chess game

Resources

  1. Spring Boot Component, Service, Repository, Controller
  2. Refactoring by Martin Fowler https://github.com/HugoMatilla/Refactoring-Summary
  3. Facade, Adaptor, Decorator, Proxy

lld's People

Contributors

pranay2063 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.