Classes Should Be Small And Only Have A Single Responsibility
| Topic | Source |
|---|---|
| ๐งน Clean Code | Clean Code - Udemy |
Focus your classes to only have one single responsibility.
Don't create a Shop class that handles customers, products, orders, deliveries, โฆ
Instead, create a new class for each responsibility.
Each class should handle a single business case, making it easy to replace and easy to understand.
Links
- Functions should be small and do one thing - they should have a single responsibility
- SOLID Clean code in React