SOLID_PRINCIPLES

command
v0.0.0-...-310902d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: MIT Imports: 1 Imported by: 0

README

SUMMARY OF SOLID PRINCIPLES

Single Responsibility

  • A type should only have 1 reason to change
  • Separation of concerns - Different packages should handle different issues

Open Closed Principle

  • Types should be open for extension but closed for modification

Liskov Substitution

  • Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it.

Interface segregation principle

  • Don't put too much into a single interface. Split it into smaller components
  • You might not need some combined functionality

Dependency Inversion

  • High level modules should not depend upon low level ones. Use abstractions.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL