Comment on [help]Question regarding Builder design patter.

Dunstabzugshaubitze@feddit.de ⁨1⁩ ⁨year⁩ ago

If null is a valid value for the field there is no reason why a builder should not construct an object where the field is null.

The only thing i dislike about the pattern is that a class utilizing the builder to retrieve the object has to know a lot about how the object has to be constructed, however it makes for very readable code imho.

source
Sort:hotnewtop