5
votes
Should i use Sqlite integer as a datatype for my primary key column?
You should look into what kind of barcode the books are using you are going to store. Take a look here for more information about bar codes https://barcode.tec-it.com/en/EAN13?data=978020137962
You ...
5
votes
Accepted
How to put interface created with JavaFX on C code?
Nope, JavaFX is a Java API. You cannot use it from C. While you can use C and Java in the same process e.g. by creating JNI bindings, that requires substantial development effort and implies some ...
4
votes
Accepted
How to go about calling parent's instance method from child instance?
This is a situation where I like to use callbacks. In a nutshell, you pass the function(s) the child object needs to call on the parent object as parameters to the child object e.g. in the ...
3
votes
How to go about calling parent's instance method from child instance?
The problem, however, is that the instance methods to do so are in class Game, but the caller is an instance of State, which Game has instantiated
So like
class Game{
State state = new State();
...
3
votes
Accepted
Java version: When to migrate?
To even begin an answer to this topic and others like it, we have to answer the following questions:
What's the risk if I don't upgrade? Working software is king, so if the risk is low enough it may ...
2
votes
Is it possible to add Service layer in MVC pattern?
Your implementation is right, but there is something you could improve.
If you want to introduce S (= service layer) in MVC, then this is one (usual) way you could do it:
Before:
M <--> C <--> ...
2
votes
Accepted
JavaFx : Is there difference between String and StringProperty in Model Classes?
A JavaFX property is an observable container that facilitates data binding: The view can be connected with properties in the view model, so that it automatically updates when the model is changed.
So ...
2
votes
How to put interface created with JavaFX on C code?
So you are writing a program in C (your client code probably) and you want to add some user interface to it.
Notice that the C11 standard (read n1570) provides very limited features for user ...
1
vote
How should ViewModels and Services communicate in a JavaFX + Spring Boot MVVM application?
A Clean Alternative: Mediator-Based MVVM for Wizards in JavaFX + Spring Boot
After exploring multiple architectural options and learning from excellent feedback on StackOverflow and ...
1
vote
Extract common code into own module
With the hint from Greg to use composition I came up with the following.
In api the following interfaces exist:
public interface Challenge extends Commonable {
@Override
ChallengeCommon ...
1
vote
Accepted
Where do JavaFX FXML controllers belong in an ECB architictural design pattern?
The Entity-Control-Boundary is an architectural pattern that has the purpose to make the link between use-cases and your code.
Architecture of ECB compared to MVC
ECB has some similarities with MVC....
1
vote
how should the MVP pattern handle views created at runtime?
It comes down to why you're creating views at runtime.
This may sound like dependency injection or immutable obsessed malarky but if your object needs A, B, and C but only A and B exist at program ...
1
vote
Designing the model layer to be serializable
Domain model can't depend on either UI or serialization components.
Any attempt to use Spring, EMF, Hibernate and other serialization frameworks to directly serialize application's model on disk or DB ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
javafx × 38java × 22
mvc × 12
design × 4
architecture × 4
design-patterns × 3
object-oriented × 3
gui × 3
api-design × 2
architectural-patterns × 2
mvvm × 2
swing × 2
circular-dependency × 2
controller × 2
c++ × 1
object-oriented-design × 1
programming-practices × 1
database-design × 1
licensing × 1
c × 1
interfaces × 1
gpl × 1
class × 1
wpf × 1
team × 1