Hi Doug,
That sounds great, except for the part where you would have to
separate drawing (view) from the event handling (controller).
For example
button("my button").click do
somemodel.dosomething
widget1.draw
somemodelother.dosomething
end
I guess you could start off with 2 layers, a "model" and a "controller/view".
Joel
On Sun, Apr 19, 2009 at 5:52 PM, doug livesey <[email protected]> wrote:
> So, do you think you could have, say:
> 1) A models folder, with business objects in it.
> 2) A widgets folder, with the actual widgets.
> 3) A controllers folder, with modules named for sensibly modularised parts
> of the app, that event handlers call methods on.
>
> Would that make sense?
> Cheers,
> Doug.
>
> 2009/4/19 Joel Fernandes <[email protected]>
>>
>> MVC would actually play very well:
>>
>> Model - the logical entities of your app, as Widgets or Objects.
>> View - drawing elements, widgets, layout
>> Controller - your event handlers (click, hover etc..)
>>
>> Joel
>>
>> On Sun, Apr 19, 2009 at 3:38 PM, doug livesey <[email protected]> wrote:
>> > Hi -- I'm mainly a Rails coder, so am used to having a full-featured MVC
>> > framework do a lot of my thinking for me when it comes to application
>> > structure & organisation.
>> > I've been thinking of ways that I can adapt the rails way of organising
>> > things to Shoes, but of course they are different paradigms, so was
>> > wondering if there were any, more desktop-app-driven
>> > approaches/frameworks
>> > that people used with shoes?
>> > Cheers,
>> > Doug.
>> >
>>
>>
>>
>> --
>> joel
>
>
--
joel