2 ms·
Clojure's a decent choice for writing a cross-platform UI application, using Swing. Java+Swing sucks, but Clojure+Swing works pretty well. I wrote a dependency
by gcv 16y ago
Clojure's a decent choice for writing a cross-platform UI application, using Swing. Java+Swing sucks, but Clojure+Swing works pretty well. I wrote a dependency graph library, dgraph, which significantly reduces the amount of boilerplate required to keep UI state in sync.
http://github.com/gcv/dgraph http://github.com/gcv/dgraph
I also wrote an embedded database library for Clojure, based on Berkeley DB.
http://github.com/gcv/cupboard http://github.com/gcv/cupboard
Which specific features make Clojure a good choice? Interactive development and macros.
- MrRage 16y agoI've been considering writing a desktop app. I've been wanting to get into the JVM action, but dimly remember being scared off by Swing years ago. What about Clojure makes it better at using Swing?
- LaPingvino 16y agoSwing can be a lot of repetitive code. Clojure has mechanisms (functions, macros and libraries) that can help you to abstract this away to exactly the way you like to write user interfaces.