2009-08-29

"错对"与"短长"

错有意外的发现,对有确定的形式;
短用在短的地方,长用在长的地方;
错对皆有其价值,短长各有其用处;

为何庸庸执意,
困于“用长补短”或“弃短留长”的“取”与“舍”?

为何固执慎守,
浸于“功功过过”或“是是非非”的“争”与“失”?

生无惊天,去无动地;
过如烟云,当在己实。

2009-08-23

知其雄,守其雌

若"能者多劳"成为工作的常态,这是已到了悲哀、绝望的状况。能令能者多劳的,其实不是自己能力而是要担负责任。多一份工作便多一份责任,更多一份苦念。当真要做自己真正感兴趣的工作,无论多少,少有觉察其责任和压力;相反,那些因能者多劳而压下来的工作,多是自己所厌烦的,无奈徒生责任和压力。

2009-08-22

慎用优化算法实现之法

David Chisnall在《How Not To Optimize》提到:
This issue is part of a more general problem. Optimizing for special cases can add some overhead to every use of a function, providing a speed improvement only in special cases. Unless a special case is particularly common, or orders of magnitude slower than every other case, then it's typically not worth the bother.

注:这里的提到优化不是指两算法间的取舍,而是在给定算法和数据结构表示后,算法实现针对特定计算环境的优化。这种优化注定了要增加系统负荷,只不过用了挪移之法顺了特定环境的约束而已。保守些不会犯傻,“保持算法的自然和简单,只有慢到需要优化时才着手优化”。

2009-08-19

所看到的是为了什么而看?

摘自此处(Andrew Gelman)
Scatterplot, please! It's not just about an eye-catching result; it's about building confidence in your findings