[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Ruby MVC

Victor 'Zverok' Shepelev

6/20/2007 12:39:00 AM

From: poopdeville@gmail.com [mailto:poopdeville@gmail.com]
Sent: Wednesday, June 20, 2007 3:20 AM
>Hi Everybody,
>
>I'm working on a data mining application, and MVC seems like the right
>approach. However, I'm having trouble finding a good MVC framework
>outside of Rails. I'm not particularly interested in running a web
>server to do data mining.
>
>Even if there isn't a suitable MVC framework, I'd like my models to be
>completely database agnostic. Is there a library comparable to Perl's
>DBIx::Class? I do NOT want to have to implement something like that.
>ActiveRecord seems like it might work for my needs, but I'm not sure
>if it's intimately tied to Rails.

I've never worked with DBIx::Class, but its documents says it's an ORM
(object-relational mapper). There are several options available for Ruby (in
fact, google "orm ruby" would show up the way). ActiveRecord plays good with
or without Rails, but sometimes may seem a bit overkill.

Personally I like Sequel[1], as a much lighter solution, though not as
well-documented and slightly buggy. For using ActiveRecord stand-alone,
you'll need AR itself[2] and ActiveSupport[3] libraries.

As for MVC framework, I suppose, the question would be in V (View) letter.
What "View engine" do you want to use? Web, GUI, TUI (text-based user
interface), command-line, or something abstract? The framework selection
should depend on this, though I can't recall any non-web MVC framework (I
has one concerned Windows GUI, but it's still far from release).

Hope this slightly helps.

V.

1: http://sequel.ruby...
2: http://rubyforge.org/projects/act...
3: http://rubyforge.org/projects/acti...


1 Answer

poopdeville

6/20/2007 1:04:00 AM

0

On Jun 19, 5:38 pm, "Victor \"Zverok\" Shepelev" > <snip>

> As for MVC framework, I suppose, the question would be in V (View) letter.
> What "View engine" do you want to use? Web, GUI, TUI (text-based user
> interface), command-line, or something abstract? The framework selection
> should depend on this, though I can't recall any non-web MVC framework (I
> has one concerned Windows GUI, but it's still far from release).
>

I'm not really sure what kind of Views I'd like just yet. I'm looking
into using RubyCocoa for an OS X GUI, but other than that, I'm not
sure.

On the other hand, I'm being careful about defining my APIs between
components, so I can be flexible.

> Hope this slightly helps.
>

Yes! Thank you.
Alex