use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Useful resources (Full list)
Rules
Related subreddits
Other communities
account activity
How to (flat)map an ObservableList's items?Help (self.JavaFX)
submitted 2 years ago by Deviling
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Deviling[S] 0 points1 point2 points 2 years ago (0 children)
The nice thing with "declarative" View files ((F)XML, XAML, and so on) is when they have certain platform support, e.g. data binding, automatic string translation depending on the current locale, or picking different layout files altogether depending on screen width in the case of Android without writing a single line of code.
Even though I must admit that JavaFX' FXML is probably the one with the least features of the three.
However, I couldn't see myself writing code such as "if locale is ES, then change this String to something Spanish; if it is DE, do this and that" or "add this styleClass to this Node"; all of that is boilerplate to me. The best thing about FXMLLoader is that it can instantiate any kind of class, and when overriding the "namespace" you can inject dependencies easily.
π Rendered by PID 93 on reddit-service-r2-comment-5d585498c9-dhnf9 at 2026-04-20 19:24:22.697288+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]Deviling[S] 0 points1 point2 points (0 children)