Tagged Questions
1
vote
1answer
102 views
MVC, Java Design Pratices, and Flaws of java.util.Observable and java.util.Observer
I am planning learning Model-View-Controller (MVC) development using Java. While reading I came across a post which mentions java.util.Observer and java.util.Observable for MVC development.
As I ...
2
votes
1answer
144 views
Lazy Processing of Streams
I have the following problem scenario:
I have a text file and I have to read it and split it into lines.
Some lines might need to be dropped (according to criteria that are not fixed).
The lines ...
8
votes
2answers
138 views
Low coupling processing big quantities of data
Usually I achieve low coupling by creating classes that exchange lists, sets, and maps between them. Now I am developing a Java batch application and I can't put all the data inside a data structure ...
0
votes
2answers
203 views
how should I design Objects around this business requirement?
This is the business requirement:
"
A Holiday Package (e.g. New York NY Holiday Package) can be offered in different ways based on the Origin city:
From New Delhi to NY
From Bombay to NY
NY itself ...
2
votes
2answers
249 views
Best practice for combining a Java Applet/ Android interface?
I'm working on an online game, which I am seriously considering writing a Java Applet for it. The game is not overly complex on the features. I'm considering at some point having at least 3 versions ...
6
votes
4answers
179 views
Is there a pattern that will help with this data structure
I'm doing a java project. My main structure contains 2 lists with elements of type A the other type B. B itself contains a list of objects which may contain elements of A.
It must be that when an ...
3
votes
1answer
352 views
Opensource showcase for MVC in Java Swing
I've allready created small desktop CRUD applications using Java/Swing. In hindsight I'm not quite sure if the overall design of these applications is good. I've also done some reading on MVC and ...
5
votes
4answers
396 views
Java - using single class or multiple class for each type?
I currently have a Java class called "node" which has a number of fields. Which fields in the class are used depends on a field called "type". There are close to 10 (this can grow) different types of ...
2
votes
3answers
122 views
design pattern for describing a variable subpart of a config file
Suppose I have an XML config file like the following:
<myapp>
<settings/>
<output>
<mailto>mail service configuration parameters</mailto>
...
19
votes
11answers
782 views
Choose code design effort or laziness in Bank world
I've worked for two years in a great Investment Bank.
I made some technical projects with the desire of creating code the most optimized, respecting the adapted good design patterns, SOLID principle, ...
16
votes
9answers
1k views
How important are design patterns in programming?
I'm a university student and I've just started learning about design patterns and im struggling to understand the purpose of them. I have tried researching them but all the resources I have found seem ...
3
votes
2answers
413 views
Age of Design Patterns
When did these design patterns originate? Balking, Builder, Delegation, Facade, Memento. I have looked for days across the net, so if someone points me to a simple google search I may shoot myself. ...
19
votes
5answers
812 views
Is object pooling a deprecated technique?
I am very familiar with the concept of object pooling and I always try to use it as much as possible.
Additionally I always thought that object pooling is the standard norm as I have observed that ...
1
vote
2answers
174 views
Am I using Factory and Impl classes properly?
In my 2d destruction derby simulator I have a CargoTruck class and CargoTruckImpl that implement an interface called Truck. CargoTruck has a reference to CargoTruckImpl which is returned through the ...
13
votes
8answers
584 views
Algorithm Vs Design [closed]
Possible Duplicate:
Is it essential to learn algorithms to be a real programmer?
This question is, perhaps, related mostly to web developers who, like myself, code enterprise applications ...