6
votes
3answers
148 views

Which of these design patterns is superior?

I find I tend to design class structures where several subclasses have nearly identical functionality, but one piece of it is different. So I write nearly all the code in the abstract class, and then ...
9
votes
3answers
391 views

Refactoring an existing abstract class and its parameters

I have an abstract class A which declares an abstract method doStuff. Currently there are many classes that inherit from A and implement doStuff. The class' instances are initialized at run-time ...
1
vote
0answers
14 views

How to manipulate JDBC connection with Service layer [migrated]

I have a Spring MVC App, it works fine, but now I inserted the service pattern and I don't know what is the the best way to treat my JDBC Connection inside my DAO. I have an interceptor which creates ...
-1
votes
3answers
58 views

Best way to create draw with limitation

I'm writing a program to automatically make the draw for a competition. There are four objects: Debate Judge School Team Each Debate has two teams and a judge. Each team participates in three debates. ...
0
votes
1answer
117 views

How to design an application that read files using MVC pattern?

I am going to write an application that reads data from a csv file, and display that data to the user. I intend to apply an MVC design pattern to create this application. A user will interact with ...
3
votes
3answers
147 views

Dynamically change of UI on value changes in list box

I have a list box with several elements, let it be web servers (tomcat, iis etc). For each list box value, UI must have different views. For example, if we choose IIS, user name and password fields ...
0
votes
1answer
87 views

Designing application flow

I am creating a web application in java where I need to mock the following flow. When user trigger a certain process (add product to cart), I need to pass through following steps Need to see in ...
3
votes
2answers
119 views

A design decision in composition or aggregation

I've recently had doubts about some design decisions that I frequently make, so this time I decided to take some time and try to analyze it to find the best solution. I will describe a simple scenario ...
0
votes
0answers
74 views

Patterns for refactoring

I have a existing legacy library which has multiple helper classes. For example Helper1, Helper2. They are not well organized. I want provide an easy to use interface like this: ...
2
votes
1answer
108 views

Can a strategy be implemented as a nested member class?

Is it okay to have a strategy implemented as a non-static inner class or is it considered a bad practice? public class SomeClass{ private final Strategy strategy; public void someMethod(){ ...
2
votes
1answer
84 views

Is there a design pattern or technique in Coldufsion/Java for serializing objects differently depending on customer's desires?

I have data available in the form of Structs and Arrays. I need some design pattern advice, which I can use to model this situation into corresponding Coldfusion Components. Here is the data ...
0
votes
0answers
128 views

Java Design Question - Updates to Multiple Tables

My application is having several domains and have corresponding screens for doing all the CRUD operations. Now I have a requirement where objects from cross domain should be shown in single screen. ...
1
vote
0answers
132 views

Fluent interface implementation and reflection. Case study

I hope I picked the right group for this question... I have this little framework I want to implement and I would like to have an opinion on it. In particular I am more concerned about the ...
2
votes
2answers
209 views

How to use MVC in practice

I'm very confused. I can't even begin to understand how MVC would be implemented outside of web development. This might seem like too general a question, but how would one apply MVC. I have the ...
4
votes
2answers
214 views

Programming style in Perl

I work in Java so basically I use OOP paradigm during coding. I am about to start working in Perl and I was wondering what is the paradigm that Perl developers follow. In wiki it mentions that it ...

1 2 3 4 5 6
15 30 50 per page