WebSeitz/wikilog
Database Abstraction
Whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.

(backlinks off) (map off)
(search off)
last edited by BillSeitz on Aug 12, 2008 6:56 am

When you have an application that stores its data in an , you have interface issues.

Most languages (e.g. ) give you a [DbApi] library which hides some of the connection/interface complexity. But you're still passing etc.

When this interaction happens all over the place in your code, should you be concerned? I'm trying to learn the best approach for my environment.

The code I've inherited barely even uses functions for anything, much less classes, much less classes in other modules.

Conversely, some people make a library/classes to bring all the stuff together.

I don't find that terribly helpful. I find that I don't get much re-use of specific queries I need to make. So having 1 class with 500 methods doesn't seem any better than having 500 functions scattered throughout my app.

At the moment I'm just starting to wrap some of those queries into functions so at least they're better contained and self-documenting...

I'm now reading 's Patterns of Enterprise Application Architecture to assist.


managing risk of " injection" http://www.unixwiz.net/techtips/sql-injection.html

is an mapper that lots of developers are using.

See : | |


 




Bill Seitz, fluxent at gmail dot com, Weblog