Wasted

(Work stuff. The loyal readership – both of you – are advised to skip this entry.)

So: I’m just finishing up some new code for error / event logging. It has four top-level classes, thirty-four secondary classes, and comprises just under 4,000 lines of code. It works; I can instantiate a BuildError object, set its various fields to reasonable values, then write it to the database. (And similarly for the other errors & events that get logged.)

There’s only one problem: I don’t like it.

It’s an incomplete, ad-hoc attempt at the sort of object/relational mapping that really ought to be implemented in something like SQLAlchemy.

But it’s a lot of code.

That I’ll have to maintain & extend.

What to do, what to do….