Category Archives: programming

Words from the Wise

Quote from Interview with Donald Knuth Still, I hate to duck your questions even though I also hate to offend other people’s sensibilities—given that software methodology has always been akin to religion. With the caveat that there’s no reason anybody … Continue reading

Posted in programming | Leave a comment

generate object methods at runtime

I have been working on a dialer button class since yesterday. It makes sense to use the command design pattern here, and I want to separate the commands and the buttons so I can change the functionality of every button … Continue reading

Posted in programming, python | Leave a comment

我果然不懂 C 啊。

from gcc-4.2.info: 5.34 An Inline Function is As Fast As a Macro <..snipped..> If you specify both `inline’ and `extern’ in the function definition, then the definition is used only for inlining. In no case is the function compiled on … Continue reading

Posted in C, programming | Leave a comment

GLOBAL and struct

Refer to: Gnu – Global – Help – How to find the definition effectively To put the story even shorter, the GNU GLOBAL will not treat C struct as definition, but as `other symbol’ . This means you may only … Continue reading

Posted in C, programming | Leave a comment

Hello World?

Guess this is appropriate for a blog about software. >>> print “Hello, world!” Hello, world!

Posted in programming, python | Leave a comment