Skip to content

Use Builder pattern for class with multiple overlapping constructors #14066

@espertusnu

Description

@espertusnu

Is your suggestion for improvement related to a problem? Please describe.

The class AutoCompletionTextInputBinding has 3 different constructors with 3-5 parameters each, which does not follow best practices.

Describe the solution you'd like
I would like for one of my students to convert it to use the Builder pattern.

Additional context
@koppor agreed on Gitter that this would be a positive change.

I made the title more general in case we mutually agree to include other classes.

Metadata

Metadata

Assignees

Labels

dev: code-qualityIssues related to code or architecture decisions📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions