2006年9月26日

means two things:
1. Reuse existing code, libraries, framework
2. Write reusable code using design patterns

The most important strategy of reuse is abstraction. Seperating the interface from inplementation.
posted @ 2006-09-26 13:24 Panda 阅读(196) | 评论 (0)编辑 收藏
 
...includes:
C Standard Library
Strings
I/O Stream
I18n
Smart Pointers
Mathematical Utilities
STL
posted @ 2006-09-26 13:20 Panda 阅读(173) | 评论 (0)编辑 收藏

2006年9月14日

A simple topic. Write it down for the purpose of memorizing it.

class A
{
A(int i); // implicit conversion: a --> A
public:
method1();
}
A a;
a = 1;
The compiler will implicitly transform the integer i to class A object a. Something like this happens under the hook:
A temp(1);
a = temp;
temp.A::~A();

Sometimes the implicit conversion is not desirable, and better turned off:
class String {
int size;
char *p;
//..
public:
//no implicit conversion
explicit String (int sz); //no implicit conversion
String (const char *s, int size n = 0); //implicit conv.
};
void f ()
{
String s(10);
s = 100; //now compile time error; explicit conversion required now:
s = String(100); //fine; explicit conversion
s = "st";//fine; implicit conversion allowed in this case

}

posted @ 2006-09-14 12:47 Panda 阅读(237) | 评论 (0)编辑 收藏

2006年9月13日

I am working on a svg project and this is the list of websites found today. (Initially, I intended to figure out how tooltip is implemented, as a side effect, digged out the interesting sites.) http://plone.org/products/geologictimescale
http://www.walterzorn.com/tooltip/tooltip_e.htm
http://svg-whiz.com/svg/Tooltip.svg
www.svgfaq.com/Zoom.asp
http://pilat.free.fr/routines/js_dom.htm
http://www.svgopen.org/2002/papers/sorotokin__svg_secrets/
http://svg-whiz.com/samples.html
http://svg-whiz.com/links.html
Google - c ODBC connection; addEventListener svg; svg ClientX Javascript, SVG et DOM
posted @ 2006-09-13 15:41 Panda 阅读(275) | 评论 (0)编辑 收藏

2006年8月15日

我的博客第一篇: Hello, world! 每天都在网络上花费一半时间,没有自己的博客是不是太落后了.
posted @ 2006-08-15 19:41 Panda 阅读(184) | 评论 (0)编辑 收藏
仅列出标题