#Builder pattern

15 messages · Page 1 of 1 (latest)

high troutBOT
#

This post has been reserved for your question.

Hey @silent veldt! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

sonic ocean
#

builders are used for creating new objects

#

not changing existing ones

#

but yes, you can also create setters returning the this-reference, it's just not a builder

#

note that Design patterns are not always a best practice

#

you can write something like the {@code this} instance for chaining

#

but that's your decision

#

if you want to

#

document what makes sensr to be documented

golden prism
#

I see big stack overflow logo, I click it

high troutBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

high troutBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

floral spruce
#

builder pattern is great when the order you do things doesn't matter for the end result
it's also more human-readable in some cases

high troutBOT
# high trout

Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click I'm done here. Close this post!.