my so-called blog (redux)

October 21, 2005

woot blam

Filed under: Computing — mrg @ 4:49 pm

Idea I’ve been tossing around: instead of coding your class (assuming PHP here) around a framework (propel, db_table, etc. etc.) or just hard-coding data management into your methods (calling PEAR DB directly, f.e.) why not have a kinda proto-DB wrapper that uses reflection to examine which variables need to be saved, and then does such and makes proper SQL (in whatever dialect) and then passes it on appropriately? The wrapper could thusly be modified to support other storage types including XML or memcached or whatever, or just banging things out in an array. Kinda like LINQ but for PHP and without all the making of the language syntax.

One Response to “woot blam”

  1. Simusid Says:

    “Ruby on Rails called, they want their reflection back”

    :)

Leave a Reply

You must be logged in to post a comment.

Powered by WordPress