Skip to content

Code Exercises for RubyConf 2023 Workshop: How To Build Desktop Applications in Ruby (Andy Maleh)

License

Notifications You must be signed in to change notification settings

AndyObtiva/how-to-build-desktop-applications-in-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How To Build Basic Desktop Applications in Ruby

RubyConf 2024 Workshop Code Exercises by Andy Maleh

(If you are looking for the RubyConf 2023 longer version of the workshop ("How To Build Desktop Applications in Ruby"), click here!)

The full material of this workshop will be released on day 2 of RubyConf 2024 (Thu, Nov 14, 2024).

Mac Windows Linux
glimmer-dsl-libui-mac-control-gallery.png glimmer-dsl-libui-windows-control-gallery.png glimmer-dsl-libui-linux-control-gallery.png

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.

Setup Glimmer DSL for LibUI

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
glimmer-dsl-libui-mac-meta-example.png glimmer-dsl-libui-windows-meta-example.png glimmer-dsl-libui-linux-meta-example.png

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]"

Resources

Hack Day

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!!!

License

MIT

Copyright (c) 2024 Andy Maleh

About

Code Exercises for RubyConf 2023 Workshop: How To Build Desktop Applications in Ruby (Andy Maleh)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages