Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large Class #67

Open
EduardKrutii opened this issue Feb 9, 2025 · 0 comments
Open

Large Class #67

EduardKrutii opened this issue Feb 9, 2025 · 0 comments

Comments

@EduardKrutii
Copy link

The Booking class is responsible for multiple concerns, including storing booking details, handling business logic, and managing pricing-related data (such as discounts and taxes). This makes the class harder to understand, modify, and extend. It also violates the Single Responsibility Principle (SRP) by bundling different functionalities together instead of delegating them to separate components.

Link to file - https://github.com/CodelyTV/refactoring-code_smells-design_patterns/blob/main/examples/csharp/csharp-booking-01_base/src/Booking/Booking.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant