On Thu, Aug 21, 2008 at 2:06 PM, Jim Jones <[EMAIL PROTECTED]> wrote:
>
> On Tue, 2008-08-19 at 16:16 -0400, Michael Bayer wrote:
>>
>> On Aug 19, 2008, at 4:07 PM, Gaetan de Menten wrote:
>>
>> > Simpler than Elixir? How so? If you are speaking about the internal
>> > guts, then you are right declarative is simpler (which is normal since
>> > it does less), but if you meant the usage (and I *think* it's what the
>> > original poster meant here), I have to disagree... Their simplicity is
>> > comparable, and I would even vote for Elixir as slightly simpler
>> > because of the little helper methods you get for free... If you meant
>> > "usage" here, please explain why you think so.
>>
>> As far as declarative being "simpler" I would say, source code wise,
>> architecture wise, things-that-can-go-wrong-wise (i.e., an
>> configurational error message in Elixir can be an elixir problem, or a
>> SQLA problem, or both, its hard to trace), as well as that you only
>> have to learn one paradigm, not two, in order to use it.   Though on
>> the last point perhaps Elixir is finally getting to the point where
>> you really don't need to know SQLA configuration in order to use it.
>
> Just another datapoint: me too.
> I started out with elixir but soon switched to declarative because
> too many times I shot myself in the foot with the subtle
> differences/interactions between elixir and SA.
>
> Furthermore pretty much all SA documentation you can find is in
> pure SA-speak. I found it easier to convert that to declarative-speak
> than to elixir-speak because declarative is closer to the real thing.

That's true... to some extent. Once you get that all arguments to
relation can be also passed to the different Elixir relationships, and
column arguments passed to Field, translating SA-speak to Elixir-speak
becomes trivial.

> IMHO elixir is a two-bladed sword. If you know that your task at hand is
> very simple (and will stay that way) then it can help you with the
> syntactic sugar.

These days, Elixir can handle almost any situation that SA can handle.
The only limitation that will never be overcome by Elixir, (but
neither by declarative) is to be able to map one class several times
(to different selectables).

> Everyone else will eventually grow out of it.

That's quite a bold claim... Ok, Elixir is not your style, that's
fine.  Also, Elixir certainly doesn't suit every project out there,
I'm aware of that. But implying it's not worth it for anybody is
well... uninformed. Just don't bash something you probably don't
really know.

-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to