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

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.
主站蜘蛛池模板: 九龙县| 达拉特旗| 临西县| 三亚市| 曲周县| 来安县| 宁国市| 甘洛县| 那曲县| 博客| 正蓝旗| 安徽省| 黑龙江省| 喜德县| 高唐县| 梓潼县| 三明市| 施秉县| 社会| 禄丰县| 上虞市| 张家界市| 沂南县| 维西| 余姚市| 通许县| 鹤壁市| 赤水市| 商都县| 教育| 镇原县| 昌都县| 竹北市| 兴化市| 蒲城县| 甘孜县| 盖州市| 万山特区| 大渡口区| 湘阴县| 靖远县|