fbpx
dirtSimple.orgwhat stands in the way, becomes the way

Software Development

The Perception of Speed

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...

Python Interfaces are not Java Interfaces

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...

R.C., Whisky, and Soup: A Parable

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...

From BBS to Blog

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...

Java is not Python, either…

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...

Mocking wxPython

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...

Python Is Not Java

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...

We’ve Got Options

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...

Stream-of-Consciousness Testing

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...

The Visitor Pattern, Revisited

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...

Using 2.4 decorators with 2.2 and 2.3

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...

dirtSimple.org

Menu

Stay In Touch

Follow our feeds or subscribe to get new articles by email on these topics:

  • RSS
  • RSS
  • RSS

 

Get Unstuck, FAST

Cover photo of "A Minute To Unlimit You" by PJ Eby
Skip to toolbar