2009年7月29日星期三
2009年7月18日星期六
毕业-何以成虎?
虎的脚步从山涧走过
这时间来了
惊骇的风没法阻挡
惊骇的风没法阻挡
虎大踏步的走过
何以成虎?
彩虹和火山低声怒吼
————雷声隆隆
滚烫岩石烧裂了皮肤
————太阳光辉
何以成虎?
丛林边际是草原入口
那里有奇怪的狗尾草
长长脖子的老学究
和花皮肤的野猫
2009年7月12日星期日
2009年7月7日星期二
blog搬家
Ooops, I made a mistake
2009年7月6日星期一
object-oriented coding in perl
That's why there are so many modules on CPAN providing object-oriented feature for Perl. Class::InsideOut, Object::InsideOut,Class::Struct, Class::Methodmaker, Class::Generate etc.. Class::Accessor may be the simplest and easiest module for "easy-coding accessors". However, when I was writing my module"Net::Douban", I found setting default value for the feilds for the package is so important, which Class::Accessor dose not provide. So I spent some time hacking on this module, and wrote a module called "Class::Accessor::WithDefault" which can provide setting default value ability to Class::Accessor. It has some drawbacks because Class::Accessor using "Closure" to build the accessor and mutator but I think it is useful, right now it can be found at github here. Then I submitted this module request to CPA, sadly some days passed and I got no return message from that side.
By the way, after some coding experience with "Net::Douban", I realized that Moose should be the best choice for a Perl Progammer to write object-oriented code.







