I have a current requirement of an application to handle messages of different types, subtypes, and possibly more subtypes, as deep as needed. These messages come off the network and should be shared ...

I have a requirement to implement a type of AI for a project, the issue is that I am having trouble visualizing how the AI should actually be implemented.
Essentially, I want the AI to be as dynamic ...

This answer gives an indication that class String is declared final for thread safety, which does not convince.
This answer does not convince when it says: And so, you make the classes final. There ...

For use in a lexer class a have a class Token which represents a token of a specific type and its value, while the types are defined by the enum TokenType in which every token holds its own regular ...

I have been to an interview for a financial programming job, and I could not answer to one question for sure. I thought about it again, but I really cannot find a good answer.
They asked me to design ...

I'm modeling a college process, in which I have three classes: Student, Subject and Degree
Degrees have their own subjects, students have a list of subjects they have passed, and also students should ...

I want to consume part of the Steam WebAPI, it's a simple Rest Service but it produces some complex json.
I thought about using the Newtonsoft Json.Net Library generate my c# objects.
Whats the best ...

I'm working in a project which deals with physical devices, and I've been confused as how to properly name some classes in this project.
Considering the actual devices (sensors and receivers) are one ...

NOTE ON QUESTION TITLE: I did not really even know how to phrase the title so if someone can edit and make it more articulate I would really appreciate it.
QUESTION:
Basically, what I'm trying to do ...

I've just finished a book on MySQL and I'm in the infantile stages of learning to couple that with Java. I know that the technology I need to learn is called JDBC and that it essentially allows you to ...

Based on some questions I asked (1, 2,3), I am frequently suggested to separate data from functions (because of changes in function, single responsibility, separation of concerns, adopting interfaces, ...

I have a series of TextBlocks which are drawn on frames to make a video of a book. I do it when user click on Make Video. User may change the content of some blocks and click again on Make Video. I ...

I have two classes that share a lot of code and are conceptually variations on a common class. So I want an abstract class that contains all their common code and then they can each inherit from it ...

Suppose a Library System. if I think about Data, I can just distinguish Book, Member classes or at most Author or Publisher... (Are they only classes?), but I have some use cases, scenarios (Borrow, ...

I have a problem with the design shown in the picture. My Section class has some TextBlocks (or simply Blocks). The section should be drawn on a page (a Bitmap as device context). It sets the blocks ...

I currently have an program in Java that simulates railway movements. Essentially, trains arrive on platforms, pick up and drop off passengers, and then proceed, respecting signalling where possible. ...

I am thinking about a way to create a flexible "settings class" in C#. The question is: How to provide a confortable way to provide default values to the settings. I want the programmer to access the ...

Suppose I have a series of methods across different classes that all use the same five core variables defined in my main method. I could chain these five variables as method arguments from one method ...

So the situation is like, I have few classes, all of which have a standard CRUD methods but static. I want to create a base class which will be inherited so that it can force to implement this CRUD ...

I often run into this problem, especially in Java, even if I think it's a general OOP issue. That is: raising an exception reveals a design problem.
Suppose that I have a class that has a String name ...

I have a form that writes to a database. Other than creating a class handle an external API, this project is done.
However, the processing script is your standard procedural calling of queries using ...