I think the sqlite default makes sense; I would guess the majority of
Rails developers are probably on some sort of *nix or a derivative, so
this isn't much of an issue.
--Jerem
--
http://www.jeremymcanally.com/
My books:
Ruby in Practice
http://www.manning.com/mcanally/
My free Ruby e-book
http://www.humblelittlerubybook.com/
My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/
I think the sqlite default makes sense; I would guess the majority of
Rails developers are probably on some sort of *nix or a derivative, so
this isn't much of an issue.
I'm constantly surprised by the number of Rails developers still using Windows.
I would agree with that, but since SQLServer was pulled from core in
2.0, I don't think it would be good to make it the default in any
scenario
Of all of the open-source databases that Rails supports out
of the box in 2.0, Windows users will at least have heard of MySQL and
a little googling finds wide acceptance among big-name companies. I
think SQLLite, however, is hardly known at all.
The scenario I'm trying to solve is this:
1. Windows developer wants to take the brave step of trying out Rails.
2. She picks up any Rails book on the market, finds out she needs to
install MySQL and the Ruby One-Click Installer, and does a gem install
rails
3. She types "rails hello_world" and creates one model
4. Big Problems
Perhaps I should change the --help text to read, "Default: sqlite3 (or
MySQL if sqlite3 gem is not found)." ? That would be fine with me.
>> I'm constantly surprised by the number of Rails developers still using
>> Windows.
>>
>
> me too.
Yeah, shocking that there are still some people using the OS that has 90%
of the desktop market share... :)
FWIW, I have three Mac laptops. But for ergonomics, I need to work at a
desktop, and there are still a decent number of Windows apps I prefer to
their Mac equivalents. Only in the past year have Parallels and VM Fusion
(and Adobe CS3 native!) made it really feasible for us hard-core Windows
users to consider switching without starting from scratch. Personally,
I've promised myself an 8-core Mac Pro Penryn this January, assuming the
rumors are true.
(Hopefully this won't start a platform war; I just wanted to remind people
that developers with Windows desktops do exist, despite what you may see at
RailsConf.)
That said, building Ruby-plus-gems from scratch is so difficult and
error-prone on Windows right now that *anyone* trying Rails is going to be
using the One-Click Installer or Instant Rails or something like that.
So if they were to start packaging SQLite (and maybe they already do), that
could solve the problem without having differing Rails defaults. Honestly,
I don't think MySQL has that much better mindshare on Windows. Either
you're involved in open source, in which case you know about MySQL and
Postgres and SQLite, or you're not, in which case you know about MS Access
and Jet and SQL Server and whatever Microsoft's latest lite-desktop-SQL
engine is called.
Better to have one default everywhere.
--
Jay Levitt |
Boston, MA | My character doesn't like it when they
Faster: jay at jay dot fm | cry or shout or hit.
http://www.jay.fm | - Kristoffer
MK
On Thu, 20 Dec 2007, Jeremy McAnally wrote:
>
> I disagree with that. I don't know anyone who uses SQL Server unless
> they have to (especially with Rails). Installing mySQL is as simple
> as downloading the installer and running it.
>
> I think the sqlite default makes sense; I would guess the majority of
> Rails developers are probably on some sort of *nix or a derivative, so
> this isn't much of an issue.
I would add that since this is something one does once per
application, it's not a really big deal either way. If you're creating
lots and lots of applications for whatever reason, you're going to
want to write a script to handle it anyway.
David
--
Training for 2008!
Ruby on Rails training by David A. Black/Ruby Power and Light, LLC:
* Intro to Rails, New York, NY, February 4-7 2008
* Advancing With Rails, New York, NY, February 11-14 2008
Hosted by Exceed Education. See http://www.rubypal.com for details!
Right. That's why I gave this a +1 - only because it seemed like it
would make it easier for people to learn rails out of the box on
Windows.
It's not at all about what's more consistent, or what is cleaner code,
or what is a better database. In my opinion, the new-user ease of use
trumps all those reasons, because experienced users can use ERB to
make the database.yml do whatever they want wherever they want. It's
just a config file.
-- Chad
It might be even more straightforward than that as it seems like next
version of instantrails will come with sqlite3:
http://rbazinet.wordpress.com/2007/12/17/whats-coming-in-instant-rails-20-and-beyond-the-road-map/