Questions tagged [builder-pattern]
The builder-pattern tag has no summary.
8 questions
0
votes
0
answers
41
views
Builder pattern with nested struct
I've been looking on how to use Builder pattern on rust with structs, but all examples I've seen only use primitive data.
Given the structs:
...
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
744
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
82
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
83
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
112
views
Print columns of text without hard coding the width (attempt 5)
If you'd like to print this:
...
2
votes
1
answer
192
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
115
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 ...