Monday, April 29, 2002

Outlines front page
From Late afternoon comedown: Also I'm trying to figure out...so I can make an index page for my outlines folder...

Well, It's done. Next, I need to find out how to get title information out of those outlines.
10:45:27 PM  blips[]    

Late afternoon comedown
Oops. I just found out I had a nasty little buglet in the head of my templates. It should be fixed now. Also, due to radio.userland's RCS outages, the SCS Refactorings, saved by tests might not be making it out to the world where it should be. The post covers my experiences this morning doing some refactorings on a framework I'm developing for Zope. Sortof a DMF (Document Management Framework) instead of a CMF (Content Management Framework).

Also, I'm trying to figure out how to write or use a macro to list directory contents, so I can make an index page for my outlines folder that's similar to the Stories folder, as I want to add such that folder to my navbar.xml file once and go merrily on my way.
5:43:57 PM  blips[]    

SCS Refactorings, saved by tests
Ouch. My head's pretty bruised now after a morning of diabolical boolean logic. Should help in the long run though.

In the SCS Framework (a compound document framework for Zope), I had previously had a pre-canned query in the crucial 'partcontainer.listParts()' method, with a little bit of support for matching parts on their Major and Minor types. It was becoming apparent that this was a pattern I needed in some other parts of the system (like rendering), so I changed things around into a combination Visitor/Command pattern, in the form of PartMatcher and PartFilter respectively. Then I realized they could be unified into a single class (PartFilter).

And I have to give thanks, again, to the unit tests. I had a bunch of tests in place already that tested listParts() based on its old behavior, and they failed a few times when switching to the new. Some of the failures were name/import errors from shuffling the code around. Others were from boolean logic head games gone bad. Everything is running smoothly again now.
1:23:08 PM  blips[]    

wake up!
+yaaawn;
10:55:30 AM  blips[]    
new day
I was without internet connection all weekend due to the cable modem not working. I come in to work today and suddenly there's all sorts of new stuff from Apple (eMac...who saw that one coming?) and Macromedia.
9:48:39 AM  blips[]