well yeah i know, im not sure what to do with that one. its a major
point I want to make, as I have already had several people not agree
with me on it, I figured I should clarify it as best I can upfront -
its basically trying to say, "active record makes for crappy
applications".
The real philosophical bulletpoint is:
- Your classes aren't tables, and your objects aren't rows. Databases
aren't just collections of tables; they're relational algebra
engines. You don't have to select from just tables, you can select
from joins, subqueries, and unions.
but that doesnt make much sense to people who dont know what im
talking about.
heres more clearly what im talking about, but it doesnt really argue
the point and I can see most people disagreeing without more specifics:
- Your classes aren't tables, and your objects aren't rows. Databases
aren't just collections of tables; they're relational algebra
engines. You don't have to select from just tables, you can select
from joins, subqueries, and unions. Database and domain concepts
should be visibly decoupled from the beginning, allowing both sides
to develop to their full potential.
So maybe after that, theres this other bulletpoint, which really isnt
"philosophy", its more "features", so i dont know what to do with it:
- For example, table metadata (objects that describe tables) are
declared distinctly from the classes theyre designed to store. That
way database relationship concepts don't interfere with your object
design concepts, and vice-versa; the transition from table-mapping to
selectable-mapping is seamless; a class can be mapped against the
database in more than one way. SQLAlchemy provides a powerful mapping
layer that can work as automatically or as manually as you choose,
determining relationships based on foreign keys or letting you define
the join conditions explicitly, to bridge the gap between database
and domain.
nevertheless, this is slightly better than the one huge paragraph so
i just put that up.
On Jan 17, 2006, at 11:55 PM, Jonathan Ellis wrote:
On 1/17/06, Michael Bayer <[EMAIL PROTECTED]> wrote:
I overhauled the site this weekend with some better content, better
formatting, etc.
I like it much better this way. Nice work!
One suggestion: the second Philosophy bullet point is huge, as bullet
points go. Can this be broken down more?
I also noticed that the docs were completely broken when
using IE6 on windows, i.e. the little "SQL popper" links totally
blew up
the formatting.
Wow. :)
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users