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

It's not about testing

T in TDD is often misunderstood. TDD is the way we approach the design. It is the way to force us to think about the implementation and what the code needs to do before writing it. It is the way to focus on requirements and the implementation of just one thing at a time—organize your thoughts and better structure the code. This does not mean that tests resulting from TDD are useless—they are far from that. They are very useful and they allow us to develop with great speed without being afraid that something will be broken. This is especially true when refactoring takes place. Being able to reorganize the code while having the confidence that no functionality is broken is a huge boost to its quality.


The main objective of TDD is testable code design with tests as a very useful side product.
主站蜘蛛池模板: 磴口县| 六安市| 康定县| 安新县| 西丰县| 保德县| 东乡族自治县| 乌兰浩特市| 潞城市| 台北市| 两当县| 怀集县| 宁武县| 连城县| 元朗区| 道孚县| 奎屯市| 余姚市| 永年县| 乃东县| 定襄县| 焦作市| 思南县| 柏乡县| 阿尔山市| 南阳市| 灵璧县| 盱眙县| 轮台县| 兴安盟| 金昌市| 循化| 绥德县| 繁昌县| 绍兴县| 光泽县| 永川市| 宜川县| 三穗县| 巴青县| 来宾市|