Sometimes, you need to perform an operation over a data structure that includes many different types of data. But, you don’t want to build the operation into the objects themselves, either because you can’t, or because you don’t want to modify every...
In my post yesterday on generic functions, I mentioned that you could use PyProtocols’ new decorators in Python 2.2 and 2.3 as well as 2.4, by using an alternative syntax.What I neglected to mention, however, was that this works only for...
Update as of 2004-11-12: Fixed broken API doc link.I now have a semi-stable generic function API in PyProtocols CVS. This is the same stuff I blogged about on Sunday, but now in a much more usable state, supporting all of Python’s esoteric function...
I just wrote a lengthy post about the interesting virtues of JotSpot and XaraOnline, hit the Preview link, and then my browser’s Back button to go back to the editor.Alas, going “Back” in Blogger’s editor preview doesn’t go back to the editor, it...
Update as of 2004/11/10: the examples below have been changed to match the latest generic function API in the PyProtocols CVS. Also, I’ve removed some text that referred to limitations that no longer exist.While looking for some info on the Chambers...
You wouldn’t think that having too many features would be a problem, but maybe it is. Somebody just asked a question about testing on the PEAK mailing list, and as part of my response, I told them about peak.ddt, a FIT-like framework for “Document...
Ah, the sweet smell of success. Earlier this month, I set a goal to complete a broad set of features for peak.web by month’s end. And tonight, I declared victory. It has been an interesting three weeks; an opportunity to explore the difference...
On the first season of the TV show, The Apprentice, one of Trump’s advisors made an interesting statement. A contestant, I think it was either Kwame or Troy, was in the boardroom, trying to justify his actions by giving the reasons for them. George...
It’s simple mathematics. There are fifty-two weeks in a year, and I am a little over thirty-six and a half years old, which means I have lived through about nineteen hundred weekends.When you talk about life in terms of weeks or months or years, it...
Ned Batchelder just blogged about a John Perry essay on “Structured Procrastination”. The theory is that you can get yourself to do anything, as long as it’s something you’re doing to avoid doing something more important.Frankly, the idea disgusts...
There are several ways for a peak.web location to determine its URL:By traversal: “my URL is whatever URL you used to get to me”Relative to a location: “I’m here, relative to some known location”By component context: “I’m a child of this other...
Do the Easiest Things First. I’ve long recognized the value of this principle for ticket management situations, but I haven’t given it much thought in my personal life. I do tend to do “easy” things first, but then I run into problems once I run out...