librelist archives

« back to archive

Pluggable Architecture

Pluggable Architecture

From:
Peter Fitzgibbons
Date:
2012-01-12 @ 21:21
Hello Folks.

If you please, inspect RuGui http://rugui.org/GettingStarted
I'm looking at the way Vicente Mundim loads and handles
RuGui::FrameworkAdapter::*
See ./rugui/lib/rugui/initializer.rb and ./rugui/lib/rugui/plugins/loader.rb

Do you think doing the same/similar for Shoes is the right path ?
./vendor/plugins/lib/shoes/framework_adapters/swt.rb =>
Shoes::FrameworkAdapter::SWT
./vendor/plugins/lib/shoes/framework_adapters/swing.rb =>
Shoes::FrameworkAdapter::Swing

Thoughts encouraged.
Peter Fitzgibbons
(847) 859-9550
Email: peter.fitzgibbons@gmail.com
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibbons@gmail.com

Re: [shoes] Pluggable Architecture

From:
ashbb
Date:
2012-01-14 @ 17:47
Hi Peter,

Thank you for an interesting information. :)

I tried the following steps:

- gem install rugui
- gem install activesupport
- gem install rubigen
- rugui sample

Then I got a directory named 'sample'. The directory has MVC
sub-directories and some .rb files.

Well, okay, let's start to write my first app which displays 'hello world'
on a window.

But,... umm,... I don't know what to do next...
Because I've never used Rails???

ashbb

Re: [shoes] Pluggable Architecture

From:
Peter Fitzgibbons
Date:
2012-01-15 @ 20:04
You've identified the difference between Shoes and RuGui.

I think the rails app had a "hello world" skeleton in MainController,
MainView, etc.
I really didn't look into it too deeply.  As a Rails developer I was able
to look past the MVC of RuGui to find the way it handled the
multiple-backend framework.

Tell me if yo get a hello-world working, and what you think of pro's/con's
of adapting MVC to desktop apps.

Peter Fitzgibbons
(847) 859-9550
Email: peter.fitzgibbons@gmail.com
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibbons@gmail.com

Re: [shoes] Pluggable Architecture

From:
Steve Klabnik
Date:
2012-01-15 @ 21:51
> Tell me if yo get a hello-world working, and what you think of pro's/con's
> of adapting MVC to desktop apps.

I still have yet to give a real response to this (and I have one,) but
tee hee hee: MVC was designed for desktop apps. :)