I’ve been thinking a lot lately about the design of a constraint management system for peak.schema. Among other things, I want the system to be able to check constraints immediately, at transaction commit time, or upon request. Further, it should be...
Bram Cohen, author of the popular Python program “BitTorrent”, recently had some interesting things to say about software architecture:Half of these ‘emotional’ architectural decisions are dogmatically using a past practice in situations where it’s...
Ryan Tomayko spins off a nicePython/Java classmethod tutorial from my Python is not Java article. Check it out.
Glyph Lefkowitz (of Twisted fame) hits the nail precisely on the head, with this incisive summary of why C programmers think Python is slow. After Guido asked the python-dev list for ideas on combatting this common perception, I suggested that...
My “Java is not Python, either” article seems to have raised a few hackles. In retrospect, I realize that the fault is my own. Although I myself said in the article that “frameworks like Zope, Twisted, and PEAK all have interfaces, but since they’re...
Once upon a time there was a little boy – let’s call him R.C. R.C. was not the handsomest boy, nor the fastest boy, nor even the smartest boy he knew, but he was young and full of dreams and potential. He was determined to make his mark on the...
People have now discussed my work in a total of eight languages, that I know of, so far; today I spotted blog posts in German, Russian, and some other language that’s presumably spoken in whatever country .cx stands for. Heck, for all I know it...
With the overwhelming response to my earlier Python Is Not Java post, I thought I’d take a little time to be fair and point out that Java Is Not Python, either. While Python is more powerful as a language, Java beats the crap out of it in the area...
I’ve seen the question asked from time to time: how do you unit test a wxPython application?Well, I don’t have a silver bullet, but it seems to me that the new SWIG wrapping of recent wxPython versions allows a new possibility: mocking the entire...
I was recently looking at the source of a wxPython-based GUI application, about 45.5KLOC in size, not counting the libraries used (e.g. Twisted). The code was written by Java developers who are relatively new to Python, and it suffers from some...
The peak.running.options module is finished in CVS, and there’s now a nice Options How-to available, courtesy of myself and the doctest module. As I was saying last Friday, “Doctest is cool!” It reminds me of when I first discovered literate...
I just used the doctest module for the first time today, and I have to say, “Wow! Gosh! Gee!”To date, PEAK incorporates some 878 automated tests, all but one of which are based on the unittest module, so I guess I’ve gotten a fair amount of...