Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing

Andy Maleh

👤 Person
308 total appearances

Appearances Over Time

Podcast Appearances

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

that are enforced to comply with operating system standards like on Mac OS or Windows. So it's a lot faster to build a desktop app with a desktop GUI toolkit than to build it with HTML and CSS. So Electron runs on top of a browser. So the good news is that browsers are a desktop app. Everybody who is doing web development uses desktop apps because the browser is a desktop application.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

that are enforced to comply with operating system standards like on Mac OS or Windows. So it's a lot faster to build a desktop app with a desktop GUI toolkit than to build it with HTML and CSS. So Electron runs on top of a browser. So the good news is that browsers are a desktop app. Everybody who is doing web development uses desktop apps because the browser is a desktop application.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

But Electron is not real desktop development. Like, cross-platform GUI toolkits are actually a lot simpler to use than Electron.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

But Electron is not real desktop development. Like, cross-platform GUI toolkits are actually a lot simpler to use than Electron.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

Yeah, so the good news is that it's like the 80-20 rule. In general, you... You write very simple GUIs that comply to the style guidelines. And you can write those GUIs very quickly, very little code using Glimmer. But 20% of the time when you need to have your own customizations, you can actually build... completely custom user interfaces from scratch if you prefer.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

Yeah, so the good news is that it's like the 80-20 rule. In general, you... You write very simple GUIs that comply to the style guidelines. And you can write those GUIs very quickly, very little code using Glimmer. But 20% of the time when you need to have your own customizations, you can actually build... completely custom user interfaces from scratch if you prefer.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

But then you have to do a lot more work. So you can actually do things that are the same things that you could do with HTML and CSS, but in desktop, like basically you draw on a canvas and you can do anything with a canvas. But in general, it's discouraged in desktop development unless you have an app that's actually drawing diagrams or doing things like visual games, 2D games or stuff like that.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

But then you have to do a lot more work. So you can actually do things that are the same things that you could do with HTML and CSS, but in desktop, like basically you draw on a canvas and you can do anything with a canvas. But in general, it's discouraged in desktop development unless you have an app that's actually drawing diagrams or doing things like visual games, 2D games or stuff like that.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

In general, if you don't have diagrams or games or anything that's very custom, it's better to stick to using standard GUI toolkit controls like text field, list, combo box, etc.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

In general, if you don't have diagrams or games or anything that's very custom, it's better to stick to using standard GUI toolkit controls like text field, list, combo box, etc.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

Yeah, sure. So Ruby Motion has two parts. There's the Ruby Motion mobile development aspect of it. That one supports iOS and Android development using Ruby code. I've actually tested it to build like a demo, like a proof of concept iOS app, and it works. It's very nice. It might have been last year or the year before was when I tested it. It still works.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

Yeah, sure. So Ruby Motion has two parts. There's the Ruby Motion mobile development aspect of it. That one supports iOS and Android development using Ruby code. I've actually tested it to build like a demo, like a proof of concept iOS app, and it works. It's very nice. It might have been last year or the year before was when I tested it. It still works.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

And then they have a desktop component, but it's not cross-platform. It's only for the Mac. So that part overlaps a bit with Glimmer, but I would not use it. I would rather use Glimmer because when you build a Glimmer app once, it runs on all platforms. And if you're using one of the native GUI toolkits like LibUI, WX Widgets, or SWT, your apps will look native on every platform as well.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

And then they have a desktop component, but it's not cross-platform. It's only for the Mac. So that part overlaps a bit with Glimmer, but I would not use it. I would rather use Glimmer because when you build a Glimmer app once, it runs on all platforms. And if you're using one of the native GUI toolkits like LibUI, WX Widgets, or SWT, your apps will look native on every platform as well.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

But the mobile aspect of RubyMotion is very cool. Actually, I do want to explore the idea of building a Glimmer DSL for RubyMotion mobile. That would be very cool because then I can write the app in Ruby with a nice DSL and it would run on iOS and Android. So that's something that would be interesting to explore. But otherwise, DragonRuby is more optimized for gaming

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

But the mobile aspect of RubyMotion is very cool. Actually, I do want to explore the idea of building a Glimmer DSL for RubyMotion mobile. That would be very cool because then I can write the app in Ruby with a nice DSL and it would run on iOS and Android. So that's something that would be interesting to explore. But otherwise, DragonRuby is more optimized for gaming

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

And yeah, Glimmer allows you to build games, but it's not optimized for games. It's not about like offering you the best performance for games or anything like that. Although its libraries are pretty optimized for performance, like they do run fast, but the library itself is not tailored towards gaming.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

And yeah, Glimmer allows you to build games, but it's not optimized for games. It's not about like offering you the best performance for games or anything like that. Although its libraries are pretty optimized for performance, like they do run fast, but the library itself is not tailored towards gaming.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

I would still recommend if people want to build complex games, Dragon Ruby is definitely the way to go. Or something else like Ruby 2D, or there are a few other libraries for gaming as well.

Ruby Rogues
Building Better Ruby Apps: Glimmer's Component Slots and More - RUBY 653

I would still recommend if people want to build complex games, Dragon Ruby is definitely the way to go. Or something else like Ruby 2D, or there are a few other libraries for gaming as well.