Skip to content

Builder Pattern to Build the Parser #15

@Diptonil

Description

@Diptonil

Version Observed In

1.0.0

Description

The increase in the number of options of the argparse is making the Parser, as a product, complicated. It is tightly coupled in the client code. There are multiple OCP and SRP violations. The options would increase further. Code needs to be restructured so that client is relieved of handling and prepping up the object so extensively that it does now.

Errors

None.

Expected Behaviour

  • Have a ParserBuilder class that manages the step-by-step creation of the object.
  • No need for any interfaces. The need for director classes is not that apparent as of now.

Further Comments

None.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions