News for hackers. Stuff that matters.
Re:Java Developers by mike_hearn on Tuesday July 22, 2014 @10:43AM (#8069213)
How would you prefer to define UI layouts? Some other DSL? A binary format?
Re:Java Developers by nick_riviera on Tuesday July 22, 2014 @11:03AM (#8069332)
Another DSL. Structural DSL like this:

   form {
      input {
         name = "bob"
         label = "Bob"
      }
      button {
          action = #{bean.submit}
      }
   }
I've actually wrote a C code generator DSL over the top of Win32 many years ago that did this so the financial app I was working on so we didn't have to write millions of dialogs in win32 loops.
Re:Java Developers by mike_hearn on Tuesday July 22, 2014 @11:27AM (#8069476)
KotlinFX defines something a bit like this.

That said, I found FXML + IntelliJ to be quite painless. The closing tags are verbose when you have small toy examples but in big files they help orient you by reminding you what the end of a block is. And I mostly use Scene Builder anyway.

Re:Java Developers by kluge on Tuesday July 22, 2014 @01:49PM (#8070457)
You might already be familiar with it, but this looks a lot like QML.
Re:Java Developers by nick_riviera on Tuesday July 22, 2014 @04:02PM (#8071258)
I wasn't actually - never used Qt (been stuck in win32 and Wx). Thanks for pointing it out :)