Skip to content

Builder Patterns for more flexible dataprep #39

@farlee2121

Description

@farlee2121

A builder could enable complex data creation while keeping each custom dimension more independent (fewer parameter in each signature, mix and match scenarios).

Bogus already works as a builder, but is very generic and requires relatively verbose configuration (*.RuleFor( prop => prop.Rulestuff...))

Key concerns.

  • I want to keep my ability to create named scenarios
  • keep overall specification short
  • Keep ability for instance configuration (like persists to DB or not)
    • no static extentions
  • keep my orchestration layer that allows joint configuration and one handle to data preps
    • This means no creating an instance for every case (like with bogus)

Possible solutions

  • use a builder behind a normal dataprep (add complexity and extra definition, but fits all requirements)
  • Treat my builder like it's immutable or like a c# 8 record (which has the .With() method to create modified instances)
    • This could possibly chew memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions