Aftermarket Pipes 26.8.2004

2004-08-26

Back to the salt mines

Mmm... writing unit tests today. I like Test Driven Development. However, after using unit testing frameworks in languages with proper_ introspection_, using them in languages without_ them is painful. Oh well... suck it up. On an unrelated note, I'm back to SPE_. Too many pretty shiny things to stay away, I suppose. .. _proper: http://www.junit.org/index.htm .. _introspection: http://pyunit.sourceforge.net/ .. _without: http://sourceforge.net/projects/cppunit .. _SPE: http://spe.pycs.net/
posted at 17:15:44    #    comment []    trackback []
 

Can you fly that thing? Not yet...

Every once in a while I notice something that reminds me of a scene from a movie. Generally, if it's a movie that has made me think a bit or consider things in a new light (Fight Club, The Matrix, and Pulp Fiction are a few), it means there's something worth chewing on in the situation.

I'm no Matrix fanboy, but I had an experience that put me in mind of one scene. Neo asks Trinity if she can fly a helicopter. She answers, "not yet," calls up her "operator", and he transfer the appropriate skills to her virtual persona.

Today I wanted to check out something using the ctypes module, so I popped open an interpreter window and typed import ctypes. No dice--I didn't have it installed on my work machine. One quick download and install later, I uparrow+entered in the same interpreter, and had ctypes available.

But this could get better. PyPI is gaining traction--it's not CPAN yet, but it seems to be turning a corner. Thinking in terms of yum and apt-get, what would be very cool is to turn this:

>>> import blahdb
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named blahdb
>>> [switch to web browser, hit Google, find the right page, find the download for my version of Python, 
     download, find installer, run installer, switch back to console]
>>> import blahdb
>>>

into this:

>>> import blahdb
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named blahdb
>>> install(blahdb)
PyPI: found blahdb (Library for accessing Blah databases) version 1.6 for Python 2.3
PyPI: <blah_author@python.org> signature OK
PyPI: installed.
>>> import blahdb
>>>

or even this:

>>> from __future__ import magic_imports
>>> import blahdb
>>>
posted at 14:50:40    #    comment []    trackback []
August 2004
MoTuWeThFrSaSu
       1
2 3 4 5 6 7 8
9101112131415
16171819202122
23242526272829
3031     
Jul
2004
 Sep
2004

Programming, Python, Games, Programming Python, Programming Games, Python Games, and Programming Python Games.

XML-Image Letterimage

© 2004, Tim Lesher