Questions tagged [builder-pattern]
The builder-pattern tag has no summary.
7 questions
11
votes
4
answers
2k
views
Builder pattern in Rust
I tried to implement Builder pattern, a popular design pattern for constructing objects consisting of different components, in Rust.
Here is my attempt:
...
4
votes
1
answer
728
views
Using builder pattern and facade pattern in real project
The code below is used to upgrade the firmware of three different types of cameras.
I am not good at design patterns. I wonder if it is suitable to use builder pattern and facade pattern here.
Since ...
2
votes
1
answer
78
views
Comparison of Named parameters and the Java Builder pattern in C++
OK writing a C++ wrapper on top of openSSL.
Setting up the SSL_CTX* object. There are a whole bunch of extra functions to specify functionality on how this object ...
2
votes
0
answers
77
views
Print columns of text without hard coding the width (attempt 6 - pivot edition)
If you'd like to pivot this:
...
4
votes
0
answers
108
views
Print columns of text without hard coding the width (attempt 5)
If you'd like to print this:
...
2
votes
1
answer
183
views
Idiomatic builder pattern in Rust
I have a couple of questions regarding how builder should be implemented idiomatically in Rust when it's necessary to call its parts depending on some flags.
Here's my take on three different designs ...
3
votes
1
answer
111
views
Builder Pattern for factory creation of beings with different races
Races have many distinguishing physical characteristics. But apart from appearances, different races have other distinguishing characteristcs, all of I've decided to be built using the Builder ...