Skip to content

Long Parameter List #65

Open
Open
@EduardKrutii

Description

@EduardKrutii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions