8
votes
0answers
220 views

Thoughts on my brain fart interpreter?

Had some free time this weekend and I hacked together a small Brainfuck interpreter, with the sole intention of explaining PHP's flavour of OO to a friend. This is a bit over-engineered on purpose, ...
-1
votes
1answer
116 views

design classes for a JAVA swing application [closed]

I am very new in making JAVA swing applications.. My problem statement is to make a library management application,for which i designed classes as below. Please tell me whether my design of classes ...
3
votes
2answers
91 views

Nice design of my hash service class

I would like to know, if my design of this class is good OOP. Should I implement for every hash algorithm a separate class? I'm asking this, because the HashService can be used with a ...
2
votes
2answers
209 views

Should C++ fields be pointers or objects?

I'm wondering whether it is better to make object fields within a class objects or pointers. Specifically it seems that using an object field requires the entire header for that object's class to be ...
3
votes
4answers
138 views

Refactoring a class hierarchy to remove subclasses

I have the following class inheritances hierarchy: First the abstract parent class: <?php abstract class SegmentParserAbstract{ /** @var ParserResult */ protected $_result; protected ...
5
votes
2answers
121 views

When an object has different representations… what's the OO pattern?

I've an AbstractMessage object (a hierarchy, actually). It represents a small text message and can be sent using different transport methods: HTTP, REST and a "mailer" transport. Each transport relies ...
6
votes
1answer
226 views

Criticism on OO design (Java)

The domain model of my application revolves around movies. The use case is following: we have a movie for which only one title (in one country) is known and we want to know titles of this movie in ...
3
votes
1answer
94 views

How to refactor a verbose datatype?

This morning I decided to write this question: Are there problems if I have a verbose datatype? I don't really explain my scenario about how am I accesing through the nested dictionaries. I decided ...
3
votes
2answers
89 views

Refactor large interface into smaller interfaces with a class that ties together

I have a large interface for my application: public interface IOrganizationFeatureStorageManager { void InitializeTables(Organization organization, string password); void ...
3
votes
1answer
727 views

Design+code review of an implementation of Dijkstra's shortest path algo

this is my code that implements dijkstra's single source shortest path algorithm (as submission to a coding forum hence tag:homework) which is called multiple times to recalculate after graph changes. ...
0
votes
3answers
364 views

Music Jukebox object oriented design review [closed]

I'm trying to improve my OO design skills and hence trying to work on the below problem - Problem Statement - We need to design a musical jukebox for a university where students can access the ...
1
vote
1answer
247 views

card sets class design in a poker game

Looking for opinion on my classes' design. I am trying to come up with the best possible design in the context of Java and object orientation principles. (I have asked some questions about my game ...
3
votes
2answers
321 views

My first OOP piece… how have I done?

This is my first OOP coding project and I would appreciate any constructive criticism as to how I could have used the benefits of Java and OOP to better effect. How would you have implemented this ...
2
votes
0answers
67 views

Design for uploading a file and persisting it to a data store

Say we have a spreadsheet (.CSV) being uploaded with static columns | (int) item 1 | (string) item 2 | (int)item 3]| That needs to be persisted to a data store, then sent back to a browser to ...
1
vote
4answers
192 views

looking for OO input , is any of this code good OO or am i doing it all wrong?

Some code im working with for a stock system , i have two ways to do this, looking for review on if any of them are correct and if so which one is better OO than the other public interface Order { ...

1 2
15 30 50 per page