[sldev] [ANN] certified http development
Nik Radford
nik at terminaldischarge.net
Wed Sep 19 16:19:37 PDT 2007
Fair enough :)
----- Original Message -----
From: "Ryan Williams" <rdw at lindenlab.com>
To: "Nik Radford" <nik at terminaldischarge.net>
Cc: "Tao Takashi" <tao.takashi at googlemail.com>; <sldev at lists.secondlife.com>
Sent: Thursday, September 20, 2007 12:10 AM
Subject: Re: [sldev] [ANN] certified http development
> Duck typing is probably close enough, actually. I mean, you don't need to
> inherit from an abstract base class to implement a simple API. The way
> I'm doing this is right now (though this could probably use some
> improvement) is the Context object has a member that implements a 'store'
> method and an 'objects' method, and that's the entire API. There's an
> implementation that uses files, but it should be straightforward to
> implement it using MySQL or whatever you like.
>
> -RYaN
>
> Nik Radford wrote:
>> Its a shame, at least its something being worked to ^_^
>>
>> ----- Original Message -----
>>
>> *From:* Tao Takashi <mailto:tao.takashi at googlemail.com>
>> *To:* Nik Radford <mailto:nik at terminaldischarge.net>
>> *Cc:* Phoenix <mailto:phoenix at secondlife.com> ; Donovan Linden
>> <mailto:donovan at lindenlab.com> ; sldev at lists.secondlife.com
>> <mailto:sldev at lists.secondlife.com> ; Ryan Williams (Which)
>> <mailto:rdw at lindenlab.com>
>> *Sent:* Wednesday, September 19, 2007 11:14 PM
>> *Subject:* Re: [sldev] [ANN] certified http development
>>
>> Hi!
>>
>> As long as you wrap the data access up in a nice class, I
>> don't know if
>> python supports interfaces or abstract classes, but it may be
>> a good idea to
>> create a data access interface, which other coders can inherit
>> from and
>> implement they're own back-end code for data storage.
>>
>>
>>
>> In Python 2.x there are not interfaces in the language directly
>> but there are implementations
>> like one from the Zope project (also usable standalone). In Python
>> 3 there will be then
>> Abstract Base Classes. But that's still a bit ahead I think
>> (although the Alpha has
>> just been released IIRC).
>>
>> -- Tao
>>
>>
>> --
>> taotakashi at gmail.com <mailto:taotakashi at gmail.com>
>> http://taotakashi.wordpress.com
>> http://worldofsl.com
>>
>> RL: Christian Scholz, cs at comlounge.net <mailto:cs at comlounge.net>
>> http://mrtopf.de
>>
>> http://comlounge.net
>> http://comlounge.tv
>> http://mrtopf.tv
>> http://dev.comlounge.net
>> IRC: MrTopf/Tao_T
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Click here to unsubscribe or manage your list subscription:
>> /index.html
>>
>
>
More information about the SLDev
mailing list