DEV Community

Discussion on: When Builder is anti-pattern

Collapse
 
aminmansuri profile image
hidden_dude

Alternatives to builders are:

  • Factories or Factory methods
  • The Interpreter pattern

The interpreter pattern is used in things such as building HTML or something like that. Then you can run a visitor through it to generate some end result.

Builders have their place, like Wizards, but as anything they shouldn't be overused.