On 17 Apr 2007, at 13:20, Ian Piper wrote:

>> What I would do if I was doing this again is to create a core class
>> for a DynamicObject that did the Operator_Lookup thing with its
>> properties, and then let it accept plug-ins that intercept various
>> operations to monitor or change them. You would then create plugin
>> generators for the relations and so on.
>>
>> You could do something almost as good as the Ruby on Rails ORM (say).
>> The only really significant obstacle is the lack of first-class
>> classes The first time I did this, I created a subclass of the
>> DynamicObject for each table. I don't think I would do that if I
>> could start over, because it involved writing a lot of almost-
>> identical shared methods. If we had first-class classes, that would
>> have been the way to go, but I think as things stand, you should just
>> have a single class that handles all tables. On startup, you'd be
>> able to execute calls on it that declared all your relations and so
>> on. You could then write wrapper classes or something so that you
>> could still have a class for each table.
>>
>> As I say, I have a couple of clients who might be interested in
>> contributing to a really full-on ORM. If anyone else can throw in,
>> I'd be happy to lead an effort to develop something we can all use.
>>
>
>
> Sounds great! Why don't we do it?

Because REALbasic doesn't have the necessary features to make a  
framework as nice as Rails, we've tried in the past, but as David  
Heinemeier Hansson would say: "The code isn't beautiful". I'm  
probably going to get some reactions to this statement, but I'd urge  
those people to look into Ruby (and Rails) first, because you can  
only understand my statement if you know what I'm talking about. I'm  
sure other RoR developers on this list will agree with me on this one.

> Actually, I have been moving my (web) development efforts
> progressively to Ruby on Rails. I am really impressed by the impact
> on productivity I get from using a framework like this and I think my
> application designs have improved as a result. I have been wondering
> whether there might be some value in putting together a framework
> approach for building RB applications. I don't necessarily have in
> mind the whole Rails panoply of application generation, scaffolding
> and what-have-you, but perhaps a community effort to create an MVC
> framework for RB applications and promote good DRY and agile design.
> It could contain such things as exemplary approaches to code
> distribution between models and controllers, ORM, unit and functional
> testing,

Same story here, we've been moving almost all our development over to  
RoR. It's simply a great framework if you're into database driven  
(web) applications and want to be productive. REALbasic is a great  
environment for some supporting desktop applications (for stuff  
similar to Google Notifier or for Growl notifications, even if the  
browser isn't open) that tie in with our Rails apps.

> Obviously this is a lot more than my earlier enquiry about ORM.
> However it seems to me that there is a place for pulling together
> application design expertise and it might be quite an enjoyable
> community exercise. I would be very happy to contribute to such an
> enterprise.
>
> RB on Rails, anyone?

It would rather turn out more something like CakeRB than RB on Rails,  
but I applaud anyone taking up such a great effort :-)


Best regards

Peter De Berdt

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to