Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 4.36 KB

README.md

File metadata and controls

78 lines (52 loc) · 4.36 KB

Clean Design Principles

React Native is released under the MIT license. PRs welcome!

drawing

-----------------------------------------------------

💀 Overview

drawing

👇 Principles

# Principle Java
01: Delegation
drawing
Solution
02: Slap
drawing
Solution
03: Yagni
drawing
Solution
04: Single Responsibility Principle
drawing
Solution
05: Open-Closed Principle
drawing
Solution
06: Liskov Substitution principle
drawing
Solution
07: Interface segregation principle
drawing
Solution
08: Dependency Inversion principle
drawing
Solution

🚀 SOLID

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

S — Single Responsibility principle : There should never be more than one reason for a class to change. In other words, every class should have only one responsibility.

O — Open-Closed principle : Software entities ... should be open for extension, but closed for modification

L — Liskov Substitution principle: Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it

I — Interface Segregation principle: Clients should not be forced to depend upon interfaces that they do not use.

D — Dependency Inversion principle: Depend upon abstractions, not concretions.

🚀 Folder Structure

The workspace contains two folders by default, where:

  • src: the folder to maintain sources
  • lib: the folder to maintain dependencies

Meanwhile, the compiled output files will be generated in the bin folder by default.

If you want to customize the folder structure, open .vscode/settings.json and update the related settings there.

✨ Contributing

Please feel free to contact me or make a pull request.

⚙️ Copyright

Created by $username on $today
Copyright (c) $today.year . All rights reserved.
Last modified $file.lastModified

-----------------------------------------------------

👇 Authors