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

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.
主站蜘蛛池模板: 金华市| 怀集县| 黄陵县| 崇信县| 陕西省| 霍邱县| 荃湾区| 梁山县| 克拉玛依市| 辉南县| 措勤县| 吉安县| 泸溪县| 玛曲县| 深泽县| 维西| 东明县| 龙里县| 渝中区| 万载县| 高阳县| 六安市| 河池市| 湄潭县| 潼关县| 昌都县| 太白县| 陆丰市| 夏津县| 闸北区| 洪雅县| 登封市| 班戈县| 芜湖县| 闽侯县| 宝坻区| 南江县| 吕梁市| 梁平县| 黑龙江省| 华池县|