<@U96SHBD0C> For that reason I always prefer to us...
# tornadofx
e
@chrbongardt For that reason I always prefer to use JavaFX Properties in the domain objects. Not doing so is simply fighting an uphill battle against JavaFX itself.
k
I find this approach appealing when making FX apps too. But I don't want to find it appealing. I want to keep my domain objects free of any dependency on UI of any kind. Still searching for an easier way up that hill. DTOs I guess.
e
DTO seems to be the way to go. My "real" domain objects live on a server somewhere, so I make a JavaFX Properties version of it on the client. I don't mind the extra work, if you can even call it that. My JavaFX versions are usually dumber than the server counterpart, and that's completely fine IMO.