<div dir="ltr">Just be sure to organize your code from the beginning.&nbsp; It&#39;s too easy to write spaghetti code in a scripting language.&nbsp; Stick with your MVC roots.&nbsp; It&#39;s useful with any kind of application development, not just the web.&nbsp; <br>
<br>But also, don&#39;t try to mimic rails, there&#39;s a lot of ways to implement MVC, not just the way rails does.<br><br>-jk<br><br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 2:57 AM, Alex Fenton <span dir="ltr">&lt;<a href="mailto:alex@pressure.to">alex@pressure.to</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Nathan<div class="Ih2E3d"><br>
<br>
Nathan Macinnes wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m trying to develop a desktop application, and since I&#39;ve done a fair<br>
bit of work with RoR before, I figured ruby is a good way to go about<br>
it. My application will be largely database driven.<br>
I&#39;m looking for a sample desktop application which I can learn a few<br>
things from. Obviously the less restrictive the license the better, and<br>
it&#39;d also be good if I can find one which is database driven. Google<br>
seems to provide very little.. or at least, the results are cluttered by<br>
RoR things. I was wondering if anyone in the group knows of any.<br>
</blockquote></div>
There&#39;s a list of some wxRuby applications on the wiki:<br>
<a href="http://wxruby.rubyforge.org/wiki/wiki.pl?OnlineCodeExamples" target="_blank">http://wxruby.rubyforge.org/wiki/wiki.pl?OnlineCodeExamples</a><br>
<br>
Of those, Weft QDA is a database (SQLite) backed application, and has a public domain licence.<br>
<a href="http://rubyforge.org/projects/weft-qda/" target="_blank">http://rubyforge.org/projects/weft-qda/</a><br>
<br>
It uses its own ActiveRecord-like persistence layer, with an Observer pattern to update the relevant GUI elements as changes to the database are saved. I&#39;d recommend you look at the code in Subversion as its a better model for designing database apps.<br>

<br>
A disadvantage for study purposes is that its a relatively complex app - &gt; 15k lines of ruby code, with a schema running to several hundred lines using triggers and views:<br>
<a href="http://weft-qda.rubyforge.org/svn/trunk/weft-qda/share/schema.sql" target="_blank">http://weft-qda.rubyforge.org/svn/trunk/weft-qda/share/schema.sql</a><br>
<br>
A simpler example to look at might be Ruby SQLite GUI, which is a desktop browser for SQLite databases:<br>
<a href="http://rsqlitegui.rubyforge.org/" target="_blank">http://rsqlitegui.rubyforge.org/</a><br>
<br>
It uses Ruby-GTK2, rather than wxRuby. GTK2 is another good GUI library, long established and with a wide range of widgets. However IMHO it works considerably less well on Windows and OS X than it does on Linux, whereas wxRuby is equally good on all three.<br>

<br>
hth<br><font color="#888888">
alex</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
wxruby-users mailing list<br>
<a href="mailto:wxruby-users@rubyforge.org" target="_blank">wxruby-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/wxruby-users" target="_blank">http://rubyforge.org/mailman/listinfo/wxruby-users</a><br>
</div></div></blockquote></div><br></div>