Lunski's Clutter

This is a place to put my clutters, no matter you like it or not, welcome here.

0%

SOLID

Useful design principles, aim for high cohesion and loose coupling.

SRP(Single-Responsibility Principle) Class

One module responsible for one character.

OCP(Open–Closed Principle) Program

Open to expansion, and the original program should not be modified when expanding.

LSP(Liskov Substitution Principle) Class

Subtypes must be designed to follow the behavior of the parent type, objects of a superclass should be replaceable with objects of its subclasses without breaking the application.

ISP(Interface Segregation Principle) Module

Dependencies between modules should not have redundant functions.

DIP(Dependency Inversion Principle) Module

High-level modules should not depend on low-level modules, they should all depend on abstract interfaces.


如果你覺得這篇文章很棒,請你不吝點讚 (゚∀゚)

Welcome to my other publishing channels