32,137 questions
0
votes
2
answers
72
views
What is the best way to create a debugging web page for a computation in Java?
I'm developing a website that uses some complex computations (NLP-related). My customer wants to have "debugging" webpages for some of these computations where he can run them with arbitrary input and ...
1
vote
1
answer
56
views
Get change commands without modifying collection
Probably a very poorly named title, but anyway...
I am using the command pattern on a hierarchical data set. So basically I need a method that returns an object that describes the changes that will ...
0
votes
2
answers
56
views
How would I implicitly call a method after having explicitly called another specific type of method
Lets say I have a bunch of methods in a class which call a Webservice and, as a result, I need to check the "response" of the Webservice each time one of these methods is called.
But I don't want to ...
0
votes
1
answer
58
views
What should be the responsibility of a presenter here?
I have a 3 layer design. (UI / BLL / DAL)
UI = ASP.NET MVC
In my view I have collection of products for a category.
Example: Product 1, Product 2 etc..
A user able to select or remove (by selecting ...
0
votes
2
answers
87
views
how to design system so users can generate their own objects using dlls
I have a server which takes some messages x and outputs some messages Y. Currently the x to y mapping is fixed. So x1 will always generate y1 with corresponding fields.
But now I want to be able to ...
0
votes
1
answer
92
views
How to deal with unstable 3rd party object tree (sorry, I can’t come up with a better title)?
Let’s say I have to use an unstable assembly that I cannot refractor. My code is supposed to be the client of a CustomerCollection that is (surprise) a collection of Customer instances. Each customer ...
0
votes
1
answer
49
views
What object handles switching views in a desktop MVC app?
In a desktop application that uses MVC, what object should be responsible for switching from one view to another? A controller at the next highest level of abstraction?
(Conceptual question not ...
0
votes
1
answer
72
views
Combined Data from 2 Domain Models
im trying to implement the Data Gateway / Domain Pattern. I understand the basics and its a fantastic pattern to separate domain logic from the persistent data layer. Now i have following requirement:
...
0
votes
3
answers
82
views
Your considerations for loading process of your site
What do you care most in the loading process of your site
Statistical Data ,Performance , ...
We know that always we need to make a balance between Quality & performance ,
so for you as an ...
1
vote
1
answer
68
views
Pattern for GUI applet for sound control
Writing a sound control applet with GUI that communicates with a device via USB. There are several type of controls being used, faders, knobs, on/off switches. Although there are functional ...
0
votes
1
answer
28
views
customize initial data issue and solution
I want to design an object for loading and showing customized data, for example, the object firstly loads all employees in database, then look up whether login user in the list, if so then show the ...
0
votes
1
answer
60
views
Simply doing modelType.ToString() isn't sufficient, How can i use it via Activator.CreateInstance?
public class MyController
{
public object CreateByEnum(DataModelType modeltype)
{
string enumText = modeltype.ToString(); // will return for example "Company"
...
0
votes
1
answer
43
views
Where to find information about patterns in 2D layout positioning and measurement?
I would like to know the best practices/design patterns of layouting in 2D.
Must have reference to:
absolute layout
vertical layout
horizontal layout
Components properties can be:
width
height
...
1
vote
1
answer
41
views
Design problem: fetching more data for some of the records I retrieve in an sql query
Say I have a query that fetches [type][show_name].
For all [type]==5 records, I need to join them with another table.
What would be the best approach for that:
Join for all records between the ...
-1
votes
1
answer
54
views
Certain Pieces of a Web Page in MVC
I am rewriting a client's application from a crappy built as one huge blob of a project into a MVC application for obvious reasons.
In doing a view for pieces of it I am noticing the original ...
1
vote
2
answers
60
views
Where to put the GetObjectColletion Methods?
An app has a Foo class that is a concrete class with all business logic and behaviour properly defined.
That said, one need to get the collection of all the Foos that are persisted at this app.
...
0
votes
1
answer
32
views
What is the recommended way to control changes of properties of an object
Assume we have the following interface:
@interface ColoredView : NSView {
NSColor *color;
}
@property (copy) NSColor *color;
- (id)initWithColor:(NSColor *)aColor;
@end
And we want view to show ...
2
votes
1
answer
37
views
Which pattern to use in replacement of composite with limited number of element type?
I have an object can be compose by components but each components has a type and should be unique :
Class Client{
Set<IComposite> elements
}
interface IComposite{
String getType();
}
...
0
votes
1
answer
25
views
Does it make sense to create a repository that takes a default search criterium as constructor argument?
I'm refactoring a website I build. It's a website for a travel agency. I'm thinking of implementing the repository pattern.
The travel agency has two divisions, that have their own website and target ...