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

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.

主站蜘蛛池模板: 慈利县| 华容县| 大荔县| 富阳市| 长岛县| 肥城市| 云和县| 万荣县| 禄劝| 波密县| 石首市| 临漳县| 德阳市| 舞钢市| 凤城市| 叙永县| 鲜城| 梁平县| 平山县| 商水县| 弥勒县| 饶阳县| 泗洪县| 忻城县| 科技| 宝应县| 江门市| 鄱阳县| 宁远县| 大邑县| 宾川县| 台北市| 延边| 博乐市| 镇巴县| 碌曲县| 南华县| 峨眉山市| 玉屏| 留坝县| 平顶山市|