Overhauled the theme scripts last week.
Instead of the convoluted attribute style that we were using for themes before, it's now a simple one-to-one list of styles and theme attributes. I think I was making a false assumption before that a single style attribute would be used for many thing on a node, but the truth of the matter is that it's just not how it's worked out. One to one doesn't really sacrifice much in terms of "cleanliness", but it buys me tons of speed and the ability to now set themes and styles at the same time (and not incurr a huge parsing hit).
What does all that blathering mean? Well, in 0.2.3, you'll be using theme.setStyleByAttr(nodeRef, themeAttrName, styleName) all over the place, and you'll save yourself all kinds of trouble in the process.
Alan Cox on the Free Software engineering process.
In an interview Jamie Zawinski gave in 1998, he said:
There are lots of small, lean web browsers out there that, incidentally, do almost nothing useful. If that's what you need, you've got options...
The defense rests, your honor.
So yesterday I was —> <— this close to writing about how much I miss singing and how I got myself talked into singing in chior at church for christmas. But I thought better of it for some reason.
I've got some ideas about the data-transfer problem... I think that instead of hijacking the widget classes to suit our needs, a data receptor class might make sense. It could be subclassed to provide the correct handling of the data, but the superclass could handle things like registering it and making sure that data block get handled correctly by the loading scripts. Well, it's an idea anyway.
netWindows needs a way to talk to servers genericaly. The parser and the loading scripts are a great interim solution, but I think what really needs to happen is some ready-to-roll extension of the two that can allow for XML data later. And it has to implement (and allow extension of) a subscribe-notify repository for data.
But this is a problem for another day. A day on which I don't have an exam. Which I happen to have one of today.