All Questions
Tagged with interface design-patterns
23
questions
1
vote
0
answers
135
views
.NET Repository Pattern
I'm currently in the process of defining some framework, one of the first things that I thought I could start with was defining some repository pattern/layer.
I generally wanted some input on it, ...
0
votes
1
answer
447
views
-2
votes
1
answer
624
views
C++ generic task interface for delayed execution
I want to rework my current game-server engine to use some global queue of tasks which will be distributed through all the working threads.
I started with task interface. I want it to be able to ...
6
votes
2
answers
264
views
Opposite access to enums
Consider I have many enums (Java) that looks somewhat like this:
...
4
votes
1
answer
153
views
Factory pattern for creating embossing machines
I'm working on a program that creates a file for a specific embosser machine (machine that creates plastic bank card for example). I have 3 embosser machines and all of them create different files. ...
5
votes
1
answer
43
views
CandidateArchive for model-assisted multi-fidelity global search algorithm
For my research I'm working on global search methods where a candidate solution can have it's fitness (=score) evaluated in multiple fidelities (=accuracy levels). The goal of the ...
5
votes
1
answer
202
views
Service for generating faked objects
I'm using the Bogus library to mock up some data for testing.
This is my main method demonstrating how the faking service should be used:
...
4
votes
1
answer
819
views
C++ implementation of the decorator pattern
This is a C++ implementation of the decorator pattern. I am also learning about interfaces and (pure) virtual functions.
...
0
votes
1
answer
101
views
Different implementation of an Interface along with additional parameters
I am designing an interface for 2 distinct implementations as follows:
Perform operations without client credentials ( for my local applications)
Perform operations using security token. (for web ...
1
vote
1
answer
101
views
Passing some redundant parameters to an interface vs creating a new request object every time for the interface
I am writing a proxy class, that will fetch a certain property (say propertyA) by calling an underlying service.
Currently we use Service A to get propertyA, but there is a chance that in the near ...
4
votes
2
answers
1k
views
Validating Shift class through builder pattern
I have a Shift class that looks like this:
...
2
votes
1
answer
124
views
Handing multiple workflows cleanly in LOB application
Background
I'm about to build a LOB application that resembles an e-commerce solution (without paying and being open to the public). It will be used to receive orders for fulfillment purposes based ...
2
votes
2
answers
1k
views
Strategy pattern using an abstract class and an interface
I have implemented some sort of the strategy pattern using an abstract class and an interface:
...
0
votes
1
answer
1k
views
ViewModel class in Typescript
I am trying to refactor a ViewModel class because it has two methods that are really similar called updateRegions and ...
12
votes
1
answer
165
views
To read a book thou should have it bought, to buy a book thou should have it found! (Search Abstraction)
I started a hobby project to find the books that I read (paperbacks) so that I can keep track of them (reading start date, finish date, number of pages, etc..)
The first challenge was to find the ...