Em Friday 30 May 2008 13:38:11 Patrick Lewis escreveu:
>
> Other than upgrading, are there other issues with injection /
> templating? Is reuse in other projects / apps a concern?
> Are there other issues?  From the standpoint of seeing what's going on
> and making changes though, injection is attractive (IMO).

I am concerned when apps / extensions start touching my database.  I am 
usually doing advanced things in there, with lots of automation, triggers, 
functions / stored procedures and views.

I want to get the most out of it and if I can't optimize the extension, it is 
a huge drawback to me.

The major concern is that when using something generic it has to be designed 
to the lowest common denominator, i.e., it won't use all the advanced 
features of the database I chose for the project (mainly because of those 
advanced features). 

> How would a hybrid approach work? I'm guessing the end developer would
> issue a command to spit the component into the project, but what
> then?  Is it totally in the end-developer's hands? From a component
> writer's perspective, it seems like there would be more overhead, but
> maybe you could make tools to help out.

I prefer that the project checks, at start time, for the presence of specific 
classes on the model.  The documentation would supply "cut & past'able" code 
for those but it is the developer's responsibility to have those implemented 
at the model with the semantics he / she wants.

For example, I don't want to have "UnicodeCol(length=255)" in any of my 
classes.  It makes no sense to the database I use and I consider that bad 
practice.  On the other hand, I understand that it makes sense for who 
chooses using MySQL due to its other deficiencies. 

So, if we have a generic API to define classes and locations for those and 
have them checked just once at startup time, then it would solve the problem 
and would allow me to optimize what I want at the database or controller 
level.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


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

Reply via email to