Jeffrey P Shell: PythonPython related programming topicsTemplates, code, and HTML- May 28, 2002 Half of our power is out, but the airport base station and the gateways are still on. So, todays teaser medicine consists of a "Python" translation of some UserTalk code I wrote (the first major script I wrote in Radio), runnable as an External Method in "Zope". Also included is the UserTalk code, as well as some DTML and ZPT output. I show this because, personally, I loathe coming across HTML in code. Sorry Jon. Writing for templates increases possibilities for reuse, since the data...http://radio.weblogs.com/0106123/categories/python/2002/05/28.html#a117 More Page Templates (a buttal of sorts)- May 24, 2002 Jon Udell and Zope Newbies both write stuff along the lines of I decided again not to use them because they would add more complexity to my sites and wouldn't solve any problems -- I'm not about to start using Dreamweaver or GoLive any time soon. It's just me and Pepper or Mozilla. I don't have to work with any designers, or that the learning curve is too steep. Personally, I think that the learning curve for Page Templates is much smaller than DTML. The only problem is in trying to think...http://radio.weblogs.com/0106123/categories/python/2002/05/23.html#a116 Sortof Agile Modeling- May 16, 2002 I started work on a new application today. We sat around the white board coming up with objectsdata, and I did some rapid modeling of the white board data into a rough UML class diagram using OmniGraffle 2.0. OmniGraffle is a fine choice for anyone (on Mac OS X) doing some form of Agile Modeling. I've had a love-hate relationship with UML over the years, and especially with modeling tools. There are many problems (that have been acknowledged, and some tools even do their best to solve...http://radio.weblogs.com/0106123/categories/python/2002/05/15.html#a104 Marshalling - the good point of XML-RPC and SOAP.- May 7, 2002 Looking back at Sam Ruby's article, Google's Genius, he mentions my favorite point in favor of SOAPRPC: Perhaps the most illumining part of Paul's essay is when he describes his optimized doSpellingSuggestion API. In this case, he declares that XML is overkill for the job. Unquestionably, omitting XML in some cases creates a tighter data stream. It can also require custom marshallers and parsers to be written. More tradeoffs to consider. The second to last sentence is.http://radio.weblogs.com/0106123/categories/python/2002/05/07.html#a92 Fun With Generators- May 6, 2002 "The great thing about this arrangement is that I can substitute a different block generating function with zero effort, as sizeAndDigest doesn't need to know how its data is being generated. I could have done that with saved state and a callback to get the next chunk of data, but generators are a lot simpler." Deadly Bloody Serioushttp://www.deadlybloodyserious.com/Python/2002/05/02.html Python Generators- May 6, 2002 There's a post on Lambda the Ultimate today about Generators and Abstraction, with reference to "Python". Ruby has the concept of generators built in from the ground up. Last summer, I came across Ruby and started playing around with it, and annoyed everyone around me (I was working for Zope Corporation who own PythonLabs) by going on and on about Ruby's object model and generators. While I'm sure my little rants had little or nothing to do with the course of Python 2.2, it is nice to see..http://radio.weblogs.com/0106123/categories/python/2002/05/06.html#a84 Boolean type for Python 2.3- May 6, 2002 I should pay attention to the comp.lang.python mailing list more often, but Usenet newsgroups seem to be a much bigger pain in the ass in these days of Broadband - it's hard to know whether your provider, or your providers provider, will really offer any usenet service. Anyways, PEP 285 brings about True and False to the Python language as natural members for the first time. One of the areas this will help in is the reduction of code like this: return not not foo the twin 'not not'.http://www.python.org/peps/pep-0285.html Another Python Web Service package.- May 5, 2002 A seemingly forgotten Web Service package for Python. Even its developer seems to have left it alone for a while. It was to be part of Web Service support for "Zope", which has yet to materialize. Anyways, this is an interesting package to look at. It's the most complete of the few SOAP + Friends packages I've looked at for Python, with deep support for WSDL Reading and Writing among other things. It's powerful, flexible, yet still easy to use. And, it mostly works. Whether or not it...http://radio.weblogs.com/0106123/categories/python/2002/05/05.html#a81 Verbosity and Web Services, again. Does Dave Winer really get it- May 4, 2002 Forward: a few hours ago, after getting home from dinner with friends, I was reading more on Web Services, and found this article on Wrapping Web Service APIs on ORN by Stephan Figgins. It somehow led me back to an old Scripting News post that somewhat rankled me when I first read it. I'm finally posting my response. At 2AM, saturday morning. Does Dave Winer get Web Services This posting talks about the overhead involved in publishing a web service via .NET. I admit, my experience with...http://radio.weblogs.com/0106123/categories/python/2002/05/04.html#a78 |