Questions tagged [builder]

An object creation software design pattern, one of the Gang of Four's creational design patterns.

The Builder design pattern separates the construction of a complex object from its representation.

It has two common variations:

  • The pattern as outlined in the book "Design Patterns" by the "Gang of Four" (Gamma, Helm, et al) (an example can be found on the Wikipedia page)
  • The pattern as outlined in the book "Effective Java" by Joshua Bloch (Example)

The latter is in many ways a consolidation of the participants in the GoF pattern. For example, the director is typically the product, and there is typically no "abstract builder", only a single concrete builder.

Builder is usually very helpful in solving the problem of telescoping constructors by reducing the combinations of constructors required for optional construction-time fields.

This is one of the Gang of Four's creational , first published in Gamma et al.'s book "Design Patterns: Elements of Reusable Object-Oriented Software".

1895 questions
0
votes
1 answer

C++ Builder Pattern Based on Configuration

I found this useful gist that introduced me into Builder Pattern Design. How would one implement this code to build a "Car" object with required and optional parameters based on configurations without writing dedicated builders? Scenario 1 Build a…
ccostel
  • 117
  • 1
  • 9
0
votes
1 answer

Java ,GUI window builder

how can return my class to defualt setting I need to see the source /desgin please help Thanks
0
votes
1 answer

Adobe Flash Builder 4: HTTP Service: What to return?

I'm having trouble figuring out what my Flex Project is expecting from my PHP file in-relation to HTTP Service. Can anyone give a link or an example as to what the PHP file should return? I already configured the return type of the Operation to…
Registered User
  • 8,706
  • 9
  • 32
  • 40
0
votes
1 answer

How to clone old builder to make a new builder object?

I have a builder class which I am using in one of my project. Let's say I have metricA as builder based on below class. I need to make a new builder metricB based on metricA by cloning metricA so that metricB contains all the values which were…
user5447339
0
votes
2 answers

GTK how to use gtk_builder_add_from_string()

I am new to Gtk and I am also using Glade to design a GUI. What is the necessary steps to show a GUI designed in glade by using gtk_builder_add_from_string() ? So far I loaded a .glade file into memory , ran g_type_init() and I got myself a…
Waxhead
  • 500
  • 3
  • 16
0
votes
1 answer

Adobe Flash Builder 4: Fade Effect with Auto Hide after Countdown?

In a Flex Project, whenever there's an error, I fill in the error data into a hidden TextInput then show the control to the user. I want to make it so that after showing the TextInput, it will automatically hide itself after some time with a fade…
Registered User
  • 8,706
  • 9
  • 32
  • 40
0
votes
1 answer

Oracle Forms Builder Ubuntu Installition issues

I try to install Oracle Forms and Builder 12.2. I have already Oracle SQL Developer. And I'm sure that I downloaded the appropriate .zip file (64bit, Linux). But before the installation, I have some problems and they affect the progress of…
0
votes
0 answers

C-Builder Load Image from File (With Classes)

I have a project to make in C-builder. I have to make Chess. The problem is that I have to make it using CLASSES. Like, class Board, class Square, class Piece. I can't find any helpful links. If someone knows how to make classes and to move random…
0
votes
1 answer

How to generate a varying number of textboxes and labels in Window Builder

I am using Eclipse Window Builder, and in my program, I would like to ask the user to enter the highest degree of the polynomial and based on his answer, I would like my program to display n text boxes and n label for him to enter the coefficient of…
0
votes
1 answer

using txmldocument (c++ builder 2007) to open a gpx file

I have a gpx-file that I want to open with the vcl component txmldocument under the c++ builder 2007. the file should be compatible with the xml-version 1.0 because it is written in the first line as one can see in the code below. I enter the file…
0
votes
1 answer

Coded UI Test Builder records similar classes, creating numerous classes in UIMap

Is there a way to force Coded UI Test Builder to use it’s already recorded classes? It creates very similar classes even within single recording session. E.g. the only difference in URL in two classes generated below. I’d like to reuse code – no…
0
votes
1 answer

SSRS date filter

I have a farely simple tablix: Year | Trimester | Measure 2016 T1 12 2016 T2 8 2015 T1 16 2015 T2 5 2015 T3 8 2015 T4 …
Bob
  • 467
  • 1
  • 4
  • 13
0
votes
1 answer

How to uncheck the resizable option in Scene Builder

The resize checker is checked, and it is greyed out, which means I cannot uncheck it. How do I gain access to uncheck this. Any help would be appreciated.
Kurogel
  • 1
  • 2
0
votes
0 answers

Laravel Eloquent Query multiple WHERE IN/NOT IN

I have the following code that returns all the files associated with a tag from the $included array, which works fine. FileObject::whereHas('tags', function($q) use ($included){ $q->WhereIn('name', $included); })->get()) Now I want to exclude…
Piny1989
  • 1
  • 3
0
votes
1 answer

Difference between concrete builder and builder?

Builder design pattern has four principle include concrete builder and builder. What is the difference between concrete builder and builder?
Gamsh
  • 545
  • 4
  • 21
1 2 3
99
100