Glimmer: DSL Framework for Ruby GUI and More
5 comments
·January 10, 2025msie
This is great! Just yesterday I was looking at wxruby3 but I didn’t see a way to package/distribute apps. This does solve that problem.
artemonster
How debuggable is this (besides sifting through wall of debug log text)? Can you step through your declarative GUI building process inside DSL or its like this: "DSL text goes into magic magic...POOF! here is the result. hopefully nothing went wrong or glhf"
chao-
The popular debugger for Ruby is a combination of two libraries: byebug and pry. Using these should allow you to step into/over code in a familiar way, if you've used most breakpoint-based debuggers.
If you end up giving it a try, please report back!
3ds
These two gems have been superseded by the `debug` gem.
In case anyone is like me and wanted to see some more usage examples, the author of Glimmer seems to have a few games he's put together using the gem:
https://github.com/AndyObtiva/glimmer_klondike_solitaire
https://github.com/AndyObtiva/glimmer_wordle
https://github.com/AndyObtiva/glimmer_tetris
https://github.com/AndyObtiva/glimmer_snake
https://github.com/AndyObtiva/glimmer_hangman
https://github.com/AndyObtiva/glimmer_metronome