Skip to main content
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 ...
Mr Zach's user avatar
  • 269
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 ...
amon's user avatar
  • 136k
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 ...
JimmyJames's user avatar
  • 31.1k
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(); ...
Caius Jard's user avatar
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 ...
Berin Loritsch's user avatar
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 <--> ...
Just a thought...'s user avatar
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 ...
amon's user avatar
  • 136k
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 ...
Basile Starynkevitch's user avatar
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 ...
Billie's user avatar
  • 77
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 ...
wand555's user avatar
  • 21
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....
Christophe's user avatar
  • 82.3k
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 ...
candied_orange's user avatar
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 ...
Basilevs's user avatar
  • 4,507

Only top scored, non community-wiki answers of a minimum length are eligible