The full material of this workshop will be released on day 2 of RubyConf 2024 (Thu, Nov 14, 2024).
Mac | Windows | Linux |
---|---|---|
Please star ("⭐️") this project and Glimmer DSL for LibUI to save for later reference with regards to Ruby Desktop Development. Glimmer DSL for LibUI was used in this workshop because it is the simplest and quickest to setup in standard Ruby (aka MRI / CRuby), but the lessons learned are applicable to other Glimmer GUI DSLs (with some syntax variations), including more mature ones like Glimmer DSL for SWT, which might be better for more serious usage after finishing the workshop. If you discover any issues or get stuck while going through the material of this repo, please report them in GitHub issues or discuss in the Glimmer Gitter Chat.
Please make sure to follow these instructions on your laptop successfully before attending the workshop.
1- Open Terminal (on Mac or Linux) or Command-Prompt/Git-Bash (on Windows) [do not use WSL or PowerShell]
2- Install glimmer-dsl-libui gem
Run:
gem install glimmer-dsl-libui -v0.12.3
3- Load Glimmer Meta-Example to test gem
Run:
glimmer examples
You should see the Glimmer Meta-Example (the example of examples).
Mac | Windows | Linux |
---|---|---|
4- (Optional) Scaffold Application
Application Scaffolding relies on the juwelier Ruby gem, which expects a local Git config of:
user.name
(git config --global user.name "FirstName LastName"
)github.user
(git config --global github.user githubusername
)
Scaffold Glimmer DSL for LibUI application with this command:
glimmer "scaffold[hello_world]"
There will be 2 events associated with this workshop:
- The Workshop: it takes place from 11:15pm-1:15pm
- The Hack Day event: it takes place from 3:45pm-5:45pm
Everyone is welcome to attend the Hack Day event for "How To Build Basic Desktop Applications in Ruby", including Software Developers who are missing the Workshop.
To participate in the Hack Day event, please make sure to Setup Glimmer DSL for LibUI beforehand.
Aftewrwards, you may engage in one of the following activities:
- Go through the workshop exercises if you missed the workshop
- Finish the workshop exercises if you attended the workshop, but did not get around to finishing all exercises
- Do the additional exercises that are in the RubyConf 2023 longer version of the workshop
- Build an application that stores its data in memory (in Ruby variables)
- Build an application that stores its data in flat files (e.g. CSV files)
- Build an application that stores its data with a relational database (e.g. SQLite)
- Build a board game or 2D game (e.g. Hangman). This requires advanced knowledge that is available in the RubyConf 2023 longer version of the workshop
I will be availble at the Hack Day event to answer any questions or help with any problems.
Happy hacking!!!
Copyright (c) 2024 Andy Maleh