2009年4月27日星期一

A friend said I should write some tech notes and send them to magasins.

Maybe she is right.

2 possible topics :

1. Using "trial" to test your C code.

2. Some tips of using GLIB.

2009年3月27日星期五

why do we need Interface in twisted

18:31:46) PeterCai: why do we need Interface in twisted? It doesn't enforce a class to implement any method as in other languages. For me, it seems only works when use adapter pattern.
(18:32:04) idnar: it also acts as documentation
(18:32:47) habnabit: The adaptation part is neat too.
(18:33:24) idnar: and there's zope.interface.verify
(18:33:40) idnar: (although you should probably only use that in unit tests and the like)
(18:34:01) buster` [n=buster@lostmind.org] 进入了聊天室。
(18:34:33) wiqd 离开了聊天室(quit: Remote closed the connection)。
(18:34:41) wiqd [n=wiqd@osiris.codelounge.org] 进入了聊天室。
(18:35:13) spiv: ablmf: twisted does use adapters occasionally.
(18:35:32) spiv: ablmf: but mainly it serves as extremely clear documentation about the contract an object promises to meet
(18:36:20) spiv: ablmf: http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.html is extremely helpful and clear compared to what you'd get by looking at the generated API docs of the implementations.
(18:36:50) pr100 [n=user@cpc2-cmbg4-0-0-cust688.cmbg.cable.ntl.com] 进入了聊天室。

--
look to the things around you,the immediate world around you, if you are alive,it will mean something to you ——Paul Strand

2009年3月19日星期四

两个技术决定

1. 最终版本的XML格式,应该是自己写一个库,递归的处理SA的对象,转换为XML.

2. 传输协议最后直接使用HTTP, 不再使用XML-RPC.

--
look to the things around you,the immediate world around you, if you are alive,it will mean something to you ——Paul Strand