RondineleG / OnForkHub

Developing a video sharing platform of up to 2 minutes with hybrid distribution (CDN and torrent).
MIT License
0 stars 2 forks source link

Implement SOLID Principles and Clean Architecture #12

Open RondineleG opened 2 days ago

RondineleG commented 2 days ago

🎯 Objective

📋 Tasks

✅ Acceptance Criteria

RondineleG commented 1 day ago

refactor: Separate validation concerns from CategoryService

The CategoryService was previously responsible for both validation and business operations, violating the Single Responsibility Principle (SRP).

This change extracts the validation logic into a separate ValidationService, allowing the CategoryService to focus solely on the core business operations. This improves code maintainability and testability.

The key changes are:

Resolves: [ 5b01562 ]

RondineleG commented 1 day ago

refactor: enforce code style rules across all projects

Add code style enforcement configurations to ensure consistent code quality:

Related configuration files:

Resolves: [587f316]

RondineleG commented 10 hours ago

refactor: enhance domain entities with improved validation and SOLID principles

Implement robust validation and better encapsulation in core entities:

Benefits:

Modified entities:

Modified services:

This refactoring ensures:

Resolves: [4312e35]