You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: