Maintain legacy code: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
Line 21: Line 21:
== further reading ==
== further reading ==
* 王建興 (2009). [http://www.ithome.com.tw/node/57107 如何面對與避免Legacy Code | iThome] 「Michael Feathers曾經對Legacy Code下了另一個定義,他認為Legacy和Non-Legacy Code區分的關鍵,在於測試。」
* 王建興 (2009). [http://www.ithome.com.tw/node/57107 如何面對與避免Legacy Code | iThome] 「Michael Feathers曾經對Legacy Code下了另一個定義,他認為Legacy和Non-Legacy Code區分的關鍵,在於測試。」
* zonble (2016). [http://www.slideshare.net/zonble/code-60464624 怎樣寫出比較沒有問題的 Code] 「不要寫 if。如果非要寫 if,不要亂寫 if。」


[[Category:Programming]] [[Category:PHP]]
[[Category:Programming]] [[Category:PHP]]

Revision as of 14:18, 7 April 2016

cases of legacy code

legacy: require_once, include_once

legacy: mysql_query, mysql_fetch_array

legacy: foreach

legacy: nested if-else

  • alternative: interface
(left blank intentionally)
legacy: 
* alternative:

further reading