2
votes
1answer
54 views

Content Management System Design Pattern Opinion

I am building game platform content management system where i have the following classes: Game, GameReview, Video and so on... Every Game object has list with GameReview objects and every GameReview ...
2
votes
1answer
122 views

Have I implemented the command pattern correctly?

This is my command interface public interface IConverter { void convert(); } This is my Receiver class public class Ogg extends Audio{ private File src; private File trgt; ...
2
votes
2answers
110 views

how to write generic extensions for standard collection types in java?

I am a Java beginner and I am looking for an idiomatic way of writing a function that involves generics. I wrote this helper class (below) that pushes items into a sorted generic collection and I ...
5
votes
1answer
104 views

Please review following code

Please review the following code. Methods getFirsts and getSeconds return a list of objects which implement CommonInterface and both of them are private. Is it a good or bad design. @Override public ...
2
votes
1answer
74 views

Which is better for package design? Easy to navigate or module independence?

I have class object ServerUser. The ServerUser be considered as shared part and it has two sub-class SshUser and FtpUser. The SshUser only provide support for SSH package and FtpUser for FTP package ...
1
vote
2answers
120 views

I'm after a collection of opinions regarding cohesion and coupling with my application to improve OO programming

Control Class - Populates test data and calls main menu import java.util.HashSet; import java.util.Set; public class Control { public void run() { // Populate Test Data Student jane = new ...
2
votes
2answers
118 views

How can I improve this code to display contact numbers?

I am making an Address Book like application . I have a contactType enum. public enum ContactType { //just a cut down version MOBILE,PHONE,FAX,EMAIL; } Then I have a Contact class public ...
-1
votes
1answer
861 views

Any suggestions about my small RPC library design?

I've started learning Java some weeks ago for one of my projects. Decided to move to it from Delphi since I trust Embarcadero no more... Since just learning Java by books is boring, I've decided to ...
1
vote
1answer
175 views

What is a better practice and easier to understand in this case? [closed]

What will be better, when writing a library - if the method returns an array of objects, or method returns a list of objects? I.E.: Row[] selectFromDb(); List<Row> selectFromDb(); What will ...