Glimmer DSL for SWT 184.108.40.206 (JRuby Desktop Development GUI Framework) and Glimmer DSL for Opal 0.7.4 (Pure Ruby Web GUI & Auto-Webifer of Desktop Apps) have been released with support for a new sample: Hello, Button!
Notice how utterly simple and intuitive the code is. It is simply leveraging standard Ruby attributes on a class, data-binding to them in the GUI, and then using a block to customize the data-bound property on read from the attribute before displaying in the button text. Otherwise, the `on_widget_selected` event, which gets triggered on click of the button simply calls the `+=` operator in Ruby to do the increment work, and that automatically updates the text in the GUI. None of the web template mixing nonsense you see in web examples of it since it is written fully in pure Ruby, thanks to the Glimmer GUI DSL. As such, it is the most concise, understandable, and maintainable code for a button counter. Beautiful, isn't it?!