=====软件工程===== 1. [[TDD 驱动测试开发]] 先写测试,后写代码的模式正在越来越流行。 驱动测试开发(Test-Driven Development, TDD)的方法能有效的保持一线开发人员的信心,同时由于优良测试方法对待测代码的要求,代测代码将更为优雅和简洁。 目前正在学习中,慢慢写心得:) - xUnit 系列自动测试工具 xUnit系列测试工具都有统一的模式, 主要有jUnit, cppUnit, pyUnit, and etc. 先以python的xUnit工具unittest为例: %%(python) import unittest class FooTestCase(unittest.TestCase): def setUp(self): blablabla..... def tearDown(self): blablabla..... def TestFooIsBar(self): self.assertEquals(blablabla....) if __name__ == "__main__": unittest.run() %% 其中每个TestFooIsBar方法都会先调用setUp, 然后调用TestFooIsBar中的代码, 最后调用tearDown()清楚资源 2. [[Refactoring 重构]] **//Improving the Design of Existing Code//** 发现一个Python的重构工具 [[http://bicyclerepair.sourceforge.net/ Bicycle Repair Man]] 3. [[XP eXetreme Programming]] http://www.extremeprogramming.org 4. 持续构建