Skip to content

Builder pattern #8

Description

@Jazarumag

Since the application handles detailed information about cricket matches, constructing objects like TableBatsman and TableBowler, which contain multiple properties and settings, can become complex. The Builder pattern provides a structured way to handle this complexity. Attached UML diagram.

image

Positive Consequences:

  • Allows you to build complex objects in a custom way, facilitating the creation of instances with specific and optional values.
  • Decouples the construction process from the internal representation of the object, allowing changes to the internal structure without affecting the construction.

Negative consequences:

  • Introduces complexity by creating additional interfaces and classes, which could make the code difficult to understand.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions