Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX, Bindings, and Paradigm Shifts to Deal with Modern Complexity?

 
Tom Nielson
Ranch Hand
Posts: 53
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is for Herbert Schildt. I've messed around a little bit with JavaFX and I am starting to notice a gradual shift in programming paradigms.

Business software demands keep getting more complex, and although Swing is a great GUI framework (and I've read your book "Swing: A Beginner's Guide" cover to cover), it can't keep up with modern GUI demands. Users want real-time, dynamic, and up-to-date information. Hitting a "Refresh" button constantly is simply not acceptable anymore. I am guessing for this reason, Oracle came up with Bindings and Properties in Java FX.

But now, many in the open-source community believe JavaFX has not achieved everything it could. Instead of leveraging the Bindings and Properties, they have created entire frameworks to utilize reactive programming in JavaFX.

For instance, there is Tomas Mikula's ReactFX framework...
https://github.com/TomasMikula/ReactFX

And then there is the RxJavaFX library which works with Netflix's RxJava.
https://github.com/ReactiveX/RxJavaFX

My question is do you believe GUI paradigms will increasingly shift from imperative to reactive? Or will reactive be a solution but not necessarily a standard?
 
Herb Schildt
Author
Ranch Hand
Posts: 253
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom,

It's nice to hear from a reader of one of my books. Thanks!

As to your question, you raise an interesting, thought-provoking one. And, it is one for which I can only offer an opinion. In my view, both the reactive and imperative paradigms are important because both are needed. That is, each solves a different type of problem. I expect that both will coexist.
 
Tom Nielson
Ranch Hand
Posts: 53
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Herb Schildt wrote:Hi Tom,

It's nice to hear from a reader of one of my books. Thanks!

As to your question, you raise an interesting, thought-provoking one. And, it is one for which I can only offer an opinion. In my view, both the reactive and imperative paradigms are important because both are needed. That is, each solves a different type of problem. I expect that both will coexist.


I have your Oracle Java books as well, but the Swing one really demystified that subject for me. And yeah I was musing on reactive programming for awhile and ultimately came to a similar conclusion. Some programmers tend to share "My design pattern is better than your design pattern!" But then you get classes implementing patterns for the sake of, and you end up with unneeded boilerplate, overhead, and complexity when the code should be very simple.

Would love a copy of the book btw! Thanks for your thoughts. I always like to hear technical authors comment on things like this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic