08 2021 档案
摘要:0 引言 关于基金选择/买卖时机的一篇。 1 如何选择基金 1.1 市盈率(PE, Price Earnings Ratio), 市盈率是指股票价格除以每股收益(每股收益,EPS)的比率。或以公司市值除以年度股东应占溢利。利用市盈率比较不同股票的投资价值时,这些股票必须属于同一个行业,因为此时公司的
阅读全文
摘要:0 引言 大部分程序员在大部分时候的工作需要跟遗留代码(legacy code)一起工作。通常这项工作中最费时间和精力的部分在于代码重构和修改遗留代码为其添加unit test. 这里有一些书以供参考: (1) 重构:改善既有代码设计 refactoring2 https://book-refact
阅读全文
摘要:static variable can only be initialized once. Compiler persist the variable till the end of the program. Eg: #include <iostream> int* a = NULL; void m
阅读全文
摘要:#include <stdio.h>#include <unistd.h> ///< unlink#include <iostream>#include <glob.h> ///< glob using namespace std; void TestUnlink() { int a = unlin
阅读全文