Live data from Hacker News

Show HN: Sierra, a DSL for building Java Swing applications

github.com

31–34 of 34 posts

Re: Show HN: Sierra, a DSL for building Java Swing applications

#31
post #29
post #9

Was hoping this meant the resurrection of JavaFxScript/Visage: https://en.wikipedia.org/wiki/JavaFX_Script#Syntax

You might like Groovy’s SwingBuilder: http://groovy-lang.org/swing.html

Sierra 1.0 and 1.1 actually took a similar approach - trying to create a DSL based on the standard layout managers.

However, I ultimately found that approach too limiting and went with custom layout managers for version 1.2.

Re: Show HN: Sierra, a DSL for building Java Swing applications

#33
post #4

This looks really cool. Applying a thin layer over parts of the standard library is a very good idea IMO. Reduces the dependency tree but a lot. One question (my Swing knowledge is at least 15 years old!): what's the simplest way to handle events using this? Eg taking the FormTest [1] example, how might one simply bind a model object to the UI elements? [1] https://github.com/HTTP-RPC/Sierra/blob/master/sierra-test/s…

I wish there was CDI integration with Swing or JavaFX and you can annotate handlers

Re: Show HN: Sierra, a DSL for building Java Swing applications

#34
Thank you for doing this.

I've maintained or built Swing applications for work and at university. One was a game.

I hope I'm not the only one who feels frontend programming is difficult to get right and to get maintainable software.

I would like to learn Qt but the C++ is a barrier to learning it.

Post reply on HN