All Questions
5 questions
-1
votes
3
answers
293
views
Design pattern for creating and scheduling tests/exams
I have an Exam class that represents an examination/test:
public class Exam
{
public int Id { get; set; }
[Required]
[StringLength(maximumLength: 30, MinimumLength = 1]
public string ...
5
votes
2
answers
431
views
GoF Builder Pattern Applicability
The book Design Patterns: Elements of Reusable Object-Oriented Software says to use the builder pattern when
The algorithm for creating a complex object should be independent of the
parts that make ...
5
votes
1
answer
2k
views
GoF's implementation of Builder in real life
I'm trying to understand builder pattern usages and so to call to separate is usage types in groups. Here is what I discovered:
Builder can be used to provide immutability (avoiding telescoping) for ...
3
votes
3
answers
2k
views
Am I using the factory method design pattern correctly, or which creational pattern should I use?
I've been studying creational design patterns for the past week or so because I have a common use case that keeps coming up, and I can't figure out which pattern fits the bill.
Here is a simplified ...
33
votes
1
answer
8k
views
Is "StringBuilder" an application of the Builder Design Pattern?
Is the "Builder" pattern restricted to addressing the "telescoping constructor" anti-pattern, or can it be said to also address the more general problem of complicated creation of immutable objects?
...