Over and Out Rag
Here’s a rough cut of the only song on the Hanson book I really like.
Here’s a rough cut of the only song on the Hanson book I really like.
This continues the introduction started in the first part. You can find an index to the entire series.
Alright, we’ve written one Twisted server so let’s write another, and then we’ll get back to learning some more about Deferreds.
In Parts 9 and 10 we introduced the idea of a poetry transformation engine. The one we eventually implemented, the cummingsifier, was so simple we had to add random exceptions to simulate a failure. But if the transformation engine was located on another server, providing a network “poetry transformation service”, then there is a much more realistic failure mode: the transformation server is down.
This continues the introduction started in the first part. You can find an index to the entire series.
Now that we’ve learned so much about writing clients with Twisted, let’s turn around and re-implement our poetry server with Twisted too. And thanks to the generality of Twisted’s abstractions, it turns out we’ve already learned almost everything we need to know. Take a look at our Twisted poetry server located in twisted-server-1/fastpoetry.py. It’s called fastpoetry because this server sends the poetry as fast as possible, without any delays at all. Note there’s significantly less code than in the client!
A fine detective story with a premise that requires some heavy lifting in the suspension-of-disbelief area. Thanks Amy!
The Quest for the Foundations of Mathematics, in comic book form. Great stuff.
This continues the introduction started in the first part. You can find an index to the entire series.
Now we’re going to add some transformation logic to our poetry client, along the lines suggested in Part 9. But first, I have a shameful and humbling confession to make: I don’t know how to write the Byronification Engine. It is beyond my programming abilities. So instead, I’m going to implement a simpler transformation, the Cummingsifier. The Cummingsifier is an algorithm that takes a poem and returns a new poem like the original but written in the style of e.e. cummings. Here is the Cummingsifier algorithm in its entirety:
Love him or hate him, the dude can write a sentence. Personally, I’m in the love camp.