[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Ruby, Rails and now og

Molitor, Stephen L

5/3/2005 11:16:00 PM

Actually no. I don't have an alternative ORM to hawk. And I should
have said in my earlier post that I've never used Rails, or Og. So I
don't really know what I'm talking about! From everything I've read and
heard about it, Rails sounds great. I don't know anything about Og.

But on the surface, being able to play around with a domain model
without worrying about SQL or the db at all, then hitting a button on
the ORM tool that says 'generate (or alter) schema', does sound
appealing. (And maybe you can do that with Rails/ActiveRecord?)

Steve


-----Original Message-----
From: Andrew Ballantine [mailto:andrew.ballantine@homecall.co.uk]
Sent: Tuesday, May 03, 2005 6:08 PM
To: ruby-talk ML
Subject: Re: Ruby, Rails and now og

Steve,

Are you hinting at an alternative to rails?

Kind regards,

Andrew Ballantine.
----- Original Message -----
From: "Molitor, Stephen L" <Stephen.L.Molitor@erac.com>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Tuesday, May 03, 2005 11:50 PM
Subject: Re: Ruby, Rails and now og


>> You write a few methods, add a few columns, write some more methods,
add another table, and on we go.

And if you change your mind, you have to remove a few methods, flip over
to the db, remove a few columns, flip back to ruby, remove a class, flip
back to the db, remove the table....no?

Steve

-----Original Message-----
From: David Heinemeier Hansson [mailto:david@loudthinking.com]
Sent: Tuesday, May 03, 2005 4:50 PM
To: ruby-talk ML
Subject: Re: Ruby, Rails and now og

> What I like about this is I can write and evolve my application with a

> focus on objects and behavior, without thinking of what database, if
> any, I might be using, or what tables, if any, I might need to create.

> As I go along, I can easily add persistence to objects by adding a few

> lines of code to the class def.
>
> It helps avoid a lot of big upfront design.

Heh. This would of course only be true be under the assumption that you
had to create your entire schema before starting on the object- oriented
part of the domain model. Which is false, of course.

Active Record is imminently suited and created with special attention
for evolving designs. The Rails way of designing your schema is column
by column as they're needed by the domain model. I'll often times start
a new domain model with linked to a table with just a single column. A
person object birthed with just a name, for example.

The great thing about working column by column is that the "conversion"
from object to database is transparent and happens all the time. You
write a few methods, add a few columns, write some more methods, add
another table, and on we go. There's no build phase where the framework
generates SQL, which then has to be loaded against your database, and
which will destroy the test data you've been working with.

Object-to-SQL conversions have their place. One of them is the
capability of generating multiple flavors of SQL from a single
definition. Preventing big upfront design is something you do by
choosing to. It's unrelated to the choice between Object-to-SQL or
SQL-to-object.
--
David Heinemeier Hansson
http://www.loudth... -- Broadcasting Brain
http://www.base... -- Online project management
http://www.rubyo... -- Web-application framework





--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 02/05/2005






1 Answer

Elwood P. Dowd

5/19/2007 2:11:00 PM

0


"Steve" <stevencanyon@lefties.suk.net> wrote in message
news:g3vt43d867d0n7pjtkdbhcs957qconqsn4@4ax.com...
> On Sat, 19 May 2007 06:28:36 -0700, "Elwood P. Dowd"
> <Reagan-AlQueda@FoxNews.net> wrote:
>
>>
>>"Steve" <stevencanyon@lefties.suk.net> wrote in message
>>news:nmct43ls4ar6ersg3kfsf8vqvqtui2h83c@4ax.com...
>>> On Fri, 18 May 2007 19:13:48 -0700, 3402 Dead
>>> <zepp22113402@finestplanet.com> wrote:
>>>
>>>>On Fri, 18 May 2007 19:36:34 -0500, David Hartung
>>>><dhart1ng@quixnet.net> wrote:
>>>>
>>>>>Elwood P. Dowd wrote:
>>>>>> "Global Warming K00ks Gone Wild again" <Global Warming k00k @
>>>>>> ELF.org>
>>>>>> wrote
>>>>>> in message news:464e08e6$0$28266$a82e2bb9@reader.athenanews.com...
>>>>>>> "3405Dead" <22113405Dead@finestplanet.com> wrote in message
>>>>>>> news:Xbm3i.6447$RX.4212@newssvr11.news.prodigy.net...
>>>>>>> =================
>>>>>>>
>>>>>>> Pretty sad if liberals are so stupid that they stopped listening to
>>>>>>> Al
>>>>>>> Freaken based on little rumors.
>>>>>>
>>>>>> You know nothing about Democrats.
>>>>>> You think Democrats are republicans who disagree with Bush's fascism.
>>>>>
>>>>>As of this day, there is no evidence to support your claim that Bush is
>>>>>a
>>>>>fascist, except in your imagination.'
>>>>
>>>>Read up on what a fascist is, Dave. There's no law that says you MUST
>>>>be an ignorant moron all your life, you know.
>>>
>>>
>>> Well, Zepp has been... an ignorant moron all his life.
>>>
>>> Bush is no more a fascist than Zepp is a bikini model.
>>>
>>> now there's a mental image that might ruin your day....
>>
>>That's what people said about Kim Jong Il, Reagan said about Saddam, Bush
>>said about Osama.
>>
>
>
> You probably thought there was a point in there.... somewhere
>
> Here's some facts.. No one has dictatorial power in the USA..
> Bush's term as president will come to an end as scheduled. The
> citizens of the USA will continue to hold free elections for public
> office

So explain why those election officials were jailed in Ohio after the 2004
election if we have "free elections".