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

Long Parameter List #65

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

Long Parameter List #65

EduardKrutii opened this issue Feb 9, 2025 · 0 comments

Comments

@EduardKrutii
Copy link

The constructor of the Booking class currently requires 11 parameters, making it difficult to read, use, and maintain. A long parameter list increases the likelihood of errors, as developers must remember the exact order of parameters when creating an instance. Additionally, it violates the Single Responsibility Principle (SRP) by handling too many pieces of information in a single constructor.

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