<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: I Thought Rails Was Meant To Be Productive&#8230;</title> <atom:link href="http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/feed/" rel="self" type="application/rss+xml" /><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/</link> <description>Living in a state of accord.</description> <lastBuildDate>Tue, 07 Feb 2012 01:07:58 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Ola Bini</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-32360</link> <dc:creator>Ola Bini</dc:creator> <pubDate>Sat, 16 Sep 2006 16:40:57 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-32360</guid> <description>Hi,
Just wanted to give you an heads-up that you now can use Apache Derby (or HSQLDB) in Rails, if you run under JRuby.</description> <content:encoded><![CDATA[<p>Hi,</p><p>Just wanted to give you an heads-up that you now can use Apache Derby (or HSQLDB) in Rails, if you run under JRuby.</p> ]]></content:encoded> </item> <item><title>By: DHH</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-31258</link> <dc:creator>DHH</dc:creator> <pubDate>Tue, 05 Sep 2006 03:58:44 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-31258</guid> <description>It obviously depends on how you bundle it. Before I even released Rails, I released a no-step-three wiki called Instiki. You can still download it. I think its available both as an .exe and as an .app file. It shipped everything in the box. 0 dependencies. Ruby didn&#039;t even have to be installed (it came with the bundle).
In any case, you must of course use what you feel comfortable with.</description> <content:encoded><![CDATA[<p>It obviously depends on how you bundle it. Before I even released Rails, I released a no-step-three wiki called Instiki. You can still download it. I think its available both as an .exe and as an .app file. It shipped everything in the box. 0 dependencies. Ruby didn&#8217;t even have to be installed (it came with the bundle).</p><p>In any case, you must of course use what you feel comfortable with.</p> ]]></content:encoded> </item> <item><title>By: Adrian Sutton</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-31061</link> <dc:creator>Adrian Sutton</dc:creator> <pubDate>Sun, 03 Sep 2006 20:40:56 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-31061</guid> <description>It&#039;s not the configuration side that is the centre of my complaint - having to configure a MySQL username and password is unavoidable when using MySQL and Rails does make that easy. The centre of the complaint is that getting the integration to work with MySQL in the first place is too difficult. On OS X I had to go searching for what parameters to pass in to specify the MySQL header files location and then had to tell rails where the ruby header files were (something I&#039;d not seen before). On Windows the install was fine, but rake migrate gave an error about missing the &quot;each&quot; method. After uninstalling everything and attempting a different path I got an error about a missing DLL, and so on.
Each of these problems is almost certainly something particularly unusual about my setup and on OS X I&#039;ve gotten it working now. My problem is that I want to be able to send the application out to end clients so they can run it on their systems. I really need it to be as simple as double-clicking a file to get it started and right now unfortunately Rails doesn&#039;t seem up to that.
In terms of which system I can do that with - Java. There are actually a lot of apps being distributed this way very successfully today. With Apache Derby there is no problem with database logins or connectivity issues and bundling in a Tomcat server is simple to do. Plus a huge number of sysadmins already have experience deploying Java applications, whereas few have experience with rails deployment so far.
That&#039;s not to say that Rails doesn&#039;t show a lot of promise, doesn&#039;t have huge benefits when you are running it from your  own servers or that Rails won&#039;t be double-click deployable in the future, it&#039;s just not quite there yet.</description> <content:encoded><![CDATA[<p>It&#8217;s not the configuration side that is the centre of my complaint &#8211; having to configure a MySQL username and password is unavoidable when using MySQL and Rails does make that easy. The centre of the complaint is that getting the integration to work with MySQL in the first place is too difficult. On OS X I had to go searching for what parameters to pass in to specify the MySQL header files location and then had to tell rails where the ruby header files were (something I&#8217;d not seen before). On Windows the install was fine, but rake migrate gave an error about missing the &#8220;each&#8221; method. After uninstalling everything and attempting a different path I got an error about a missing DLL, and so on.</p><p>Each of these problems is almost certainly something particularly unusual about my setup and on OS X I&#8217;ve gotten it working now. My problem is that I want to be able to send the application out to end clients so they can run it on their systems. I really need it to be as simple as double-clicking a file to get it started and right now unfortunately Rails doesn&#8217;t seem up to that.</p><p>In terms of which system I can do that with &#8211; Java. There are actually a lot of apps being distributed this way very successfully today. With Apache Derby there is no problem with database logins or connectivity issues and bundling in a Tomcat server is simple to do. Plus a huge number of sysadmins already have experience deploying Java applications, whereas few have experience with rails deployment so far.</p><p>That&#8217;s not to say that Rails doesn&#8217;t show a lot of promise, doesn&#8217;t have huge benefits when you are running it from your  own servers or that Rails won&#8217;t be double-click deployable in the future, it&#8217;s just not quite there yet.</p> ]]></content:encoded> </item> <item><title>By: DHH</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-31057</link> <dc:creator>DHH</dc:creator> <pubDate>Sun, 03 Sep 2006 18:43:35 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-31057</guid> <description>BTW, to install the C-bindings for MySQL, you do &quot;gem install mysql&quot;. To install the C-bindings for SQLite, you do &quot;gem install sqlite-ruby&quot;. I&#039;d file that under &quot;easier than most&quot;.</description> <content:encoded><![CDATA[<p>BTW, to install the C-bindings for MySQL, you do &#8220;gem install mysql&#8221;. To install the C-bindings for SQLite, you do &#8220;gem install sqlite-ruby&#8221;. I&#8217;d file that under &#8220;easier than most&#8221;.</p> ]]></content:encoded> </item> <item><title>By: DHH</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-31056</link> <dc:creator>DHH</dc:creator> <pubDate>Sun, 03 Sep 2006 18:40:59 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-31056</guid> <description>Adrian, which environment do you work in where database connectors doesn&#039;t need to be installed and they don&#039;t need to be configured? In any case, please do get specific and we can help you solve the problem. What&#039;s the error message you&#039;re seeing and what&#039;s the setup you&#039;re running on?
Rails automatically configures for SQLite, and any other database we support, by using the --db option when you create a new application. We can&#039;t, however, guess your user name and password. Although we actually try (by default its root/nothing for MySQL, which is what its out of the box for that database).</description> <content:encoded><![CDATA[<p>Adrian, which environment do you work in where database connectors doesn&#8217;t need to be installed and they don&#8217;t need to be configured? In any case, please do get specific and we can help you solve the problem. What&#8217;s the error message you&#8217;re seeing and what&#8217;s the setup you&#8217;re running on?</p><p>Rails automatically configures for SQLite, and any other database we support, by using the &#8211;db option when you create a new application. We can&#8217;t, however, guess your user name and password. Although we actually try (by default its root/nothing for MySQL, which is what its out of the box for that database).</p> ]]></content:encoded> </item> <item><title>By: Adrian Sutton</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-30828</link> <dc:creator>Adrian Sutton</dc:creator> <pubDate>Sat, 02 Sep 2006 23:14:44 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-30828</guid> <description>DHH,
Then why doesn&#039;t it work consistently, reliably, everywhere, first time? Maybe it&#039;s something simple but the error messages are completely useless. Either way I&#039;ve wasted far too much time on this - if I can&#039;t get it working I can&#039;t expect anyone else to so for now Rails isn&#039;t a good solution for this project. I need something that I can give to clients and know that they&#039;ll be able to get it up and running on their system in a couple of clicks. Rails I&#039;m sure will get to the point where it can do that, but it&#039;s not there yet.
Great to hear that rails automatically configures SQLite though. It still has the downside of needing to get the integration with SQLite working - if that&#039;s seemless then great, but I don&#039;t hold very high hopes considering my past experiences with anything and SQLite and Rails and MySQL.</description> <content:encoded><![CDATA[<p>DHH,<br
/> Then why doesn&#8217;t it work consistently, reliably, everywhere, first time? Maybe it&#8217;s something simple but the error messages are completely useless. Either way I&#8217;ve wasted far too much time on this &#8211; if I can&#8217;t get it working I can&#8217;t expect anyone else to so for now Rails isn&#8217;t a good solution for this project. I need something that I can give to clients and know that they&#8217;ll be able to get it up and running on their system in a couple of clicks. Rails I&#8217;m sure will get to the point where it can do that, but it&#8217;s not there yet.</p><p>Great to hear that rails automatically configures SQLite though. It still has the downside of needing to get the integration with SQLite working &#8211; if that&#8217;s seemless then great, but I don&#8217;t hold very high hopes considering my past experiences with anything and SQLite and Rails and MySQL.</p> ]]></content:encoded> </item> <item><title>By: DHH</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-30799</link> <dc:creator>DHH</dc:creator> <pubDate>Sat, 02 Sep 2006 22:17:45 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-30799</guid> <description>Adrian, Rails actually ships with a Ruby-based MySQL adapter. You don&#039;t need the C-based one, except for speed. Also, you don&#039;t have to configure three databases. You can start out just configuring the development one. Then once you need the other environments, you can configure those.
With SQLite, the creation of the three databases is all handled automatically, though. Just create a new rails app with &quot;rails --db sqlite2 myapp&quot; and its even configured for you as well.</description> <content:encoded><![CDATA[<p>Adrian, Rails actually ships with a Ruby-based MySQL adapter. You don&#8217;t need the C-based one, except for speed. Also, you don&#8217;t have to configure three databases. You can start out just configuring the development one. Then once you need the other environments, you can configure those.</p><p>With SQLite, the creation of the three databases is all handled automatically, though. Just create a new rails app with &#8220;rails &#8211;db sqlite2 myapp&#8221; and its even configured for you as well.</p> ]]></content:encoded> </item> <item><title>By: Adrian Sutton</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-30797</link> <dc:creator>Adrian Sutton</dc:creator> <pubDate>Sat, 02 Sep 2006 22:12:34 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-30797</guid> <description>Matt,
SQLite has the same problems as MySQL - you have to get past all the Ruby to C interface stuff. Setting up the MySQL server itself is trivial, getting Rails to talk to it is exceptionally frustrating - just look at all the blog posts and wiki pages asking for help with it. A pure Ruby database would avoid this because it wouldn&#039;t have a native component that has to be tailored for each system. Having a default embedded database also has the advantage of eliminating the need for configuration before you start developing.
Also, the distinction between databases is good, the fact that I have to configure three different databases is bad. With an embedded database Rails would just create the three separate databases for me with no configuration required. You&#039;d still have the ability to configure it to use MySQL if you knew your app required that, but by default it would just work.</description> <content:encoded><![CDATA[<p>Matt,<br
/> SQLite has the same problems as MySQL &#8211; you have to get past all the Ruby to C interface stuff. Setting up the MySQL server itself is trivial, getting Rails to talk to it is exceptionally frustrating &#8211; just look at all the blog posts and wiki pages asking for help with it. A pure Ruby database would avoid this because it wouldn&#8217;t have a native component that has to be tailored for each system. Having a default embedded database also has the advantage of eliminating the need for configuration before you start developing.</p><p>Also, the distinction between databases is good, the fact that I have to configure three different databases is bad. With an embedded database Rails would just create the three separate databases for me with no configuration required. You&#8217;d still have the ability to configure it to use MySQL if you knew your app required that, but by default it would just work.</p> ]]></content:encoded> </item> <item><title>By: Matt Palmer</title><link>http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/comment-page-1/#comment-30691</link> <dc:creator>Matt Palmer</dc:creator> <pubDate>Sat, 02 Sep 2006 05:53:09 +0000</pubDate> <guid
isPermaLink="false">http://www.symphonious.net/2006/09/02/i-thought-rails-was-meant-to-be-productive/#comment-30691</guid> <description>The Rails guys probably didn&#039;t want to write a pure-Ruby embedded database because there&#039;s a reasonable altrenative already -- SQLite (http://www.sqlite.org/).  Bindings available as gems or in your (or at least my) favourite distro&#039;s package repositories.  Trivial to setup.  As long as you stick to migrations and ActiveRecord for all your database interfacing, it&#039;s perfectly fine to use -- it&#039;s &quot;dialect&quot; of SQL is a bit more limited than MySQL&#039;s, so if you&#039;re executing queries directly against the DB it&#039;s unlikely to be too healthy.
As for having to setup separate dev/test/prod databases, I think the separation of concerns in Rails&#039; environments concept is an amazingly powerful one, and if Rails&#039; only lasting legacy was the universal adoption of such a concept, I&#039;d almost be satisfied.  If you really want minimal-time config, though, you can just define one environment and then tell the others to &quot;inherit&quot; from that, like so:
development:
adapter: sqlite3
dbfile: db/devel
test: development
production: development </description> <content:encoded><![CDATA[<p>The Rails guys probably didn&#8217;t want to write a pure-Ruby embedded database because there&#8217;s a reasonable altrenative already &#8212; SQLite (<a
href="http://www.sqlite.org/" rel="nofollow">http://www.sqlite.org/</a>).  Bindings available as gems or in your (or at least my) favourite distro&#8217;s package repositories.  Trivial to setup.  As long as you stick to migrations and ActiveRecord for all your database interfacing, it&#8217;s perfectly fine to use &#8212; it&#8217;s &#8220;dialect&#8221; of SQL is a bit more limited than MySQL&#8217;s, so if you&#8217;re executing queries directly against the DB it&#8217;s unlikely to be too healthy.</p><p>As for having to setup separate dev/test/prod databases, I think the separation of concerns in Rails&#8217; environments concept is an amazingly powerful one, and if Rails&#8217; only lasting legacy was the universal adoption of such a concept, I&#8217;d almost be satisfied.  If you really want minimal-time config, though, you can just define one environment and then tell the others to &#8220;inherit&#8221; from that, like so:</p><p>development:<br
/> adapter: sqlite3<br
/> dbfile: db/devel</p><p>test: development</p><p>production: development</p> ]]></content:encoded> </item> </channel> </rss>
