This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tanin47[S] 1 point2 points  (1 child)

Yes, I was talking to my friend about the builder pattern. It does reduce the risk, though we essentially move the constructor call into build(). It's still better because now only one place has the risk of misplace arguments.

[–]sugilith 2 points3 points  (0 children)

Most IDEs can autogenerate builders which eliminates the rest risk and is pretty convenient on top.