DEV Community

Discussion on: Builder Design Pattern

Collapse
 
monknomo profile image
Gunnar Gissel

I'm a huge fan of returning this with java builder patterns. The fluent api you get out of it is fantastic. You can very nearly get something like a custom DSL out of just that technique alone

Collapse
 
nishparadox profile image
Nishan Pantha

True that. The chain rules are elegant and are more aesthetic in builder patterns.