官术网_书友最值得收藏!

Refactoring of existing code

Refactoring code can be nerve-racking. Removing, rewriting, and reshuffling. How do you know it is still doing the job it used to? Does it not break anything else? It certainly needs to be tested. But, when manually done, it is often executed after the whole refactoring is ready. That might be already too late, as too many pieces got broken. Grant yourself peace of mind and start, before any refactoring, by getting an automated test suite in place for this code to prove its validity. With every refactor step you take, run the damn suite. And again. This way, refactoring becomes fun.

主站蜘蛛池模板: 丰城市| 萝北县| 丘北县| 巴马| 民县| 富蕴县| 保靖县| 新巴尔虎右旗| 蒙山县| 平原县| 介休市| 陆河县| 贡觉县| 河曲县| 隆化县| 武城县| 习水县| 江孜县| 山东| 容城县| 永嘉县| 叶城县| 宣武区| 交口县| 张家口市| 根河市| 西乌| 黄陵县| 扎囊县| 德州市| 清水河县| 霍林郭勒市| 积石山| 陕西省| 内黄县| 五寨县| 沧州市| 三都| 尼木县| 怀化市| 江山市|