Maintain legacy code: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 20: | Line 20: | ||
== further reading == | == further reading == | ||
* 王建興 (2009). [http://www.ithome.com.tw/node/57107 如何面對與避免Legacy Code | iThome] | * 王建興 (2009). [http://www.ithome.com.tw/node/57107 如何面對與避免Legacy Code | iThome] 「Michael Feathers曾經對Legacy Code下了另一個定義,他認為Legacy和Non-Legacy Code區分的關鍵,在於測試。」 | ||
[[Category:Programming]] [[Category:PHP]] | [[Category:Programming]] [[Category:PHP]] | ||
Revision as of 12:24, 7 December 2015
cases of legacy code
legacy: require_once, include_once
- alternative: PHP系列 - Autoload 自動載入 « 不像樣工程師 Eric G. Huang's 學習日記
legacy: mysql_query, mysql_fetch_array
- alternative: PHP: PDO::prepare - Manual
legacy: foreach
- alternative: generators
legacy: nested if-else
- alternative: interface
(left blank intentionally) legacy: * alternative:
further reading
- 王建興 (2009). 如何面對與避免Legacy Code | iThome 「Michael Feathers曾經對Legacy Code下了另一個定義,他認為Legacy和Non-Legacy Code區分的關鍵,在於測試。」