加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

TDD的主要目的是设计而不是White Box Test

发布时间:2020-12-13 20:43:57 所属栏目:百科 来源:网络整理
导读:As Kevin Taylorwrites: ....Its primary purpose is code design . .... How does it lead to better code design? Test first development works like this. ..... Developer is designing the application's API and internal implementation by discoveri
As Kevin Taylorwrites:

....Its primary purpose is code design. ....

How does it lead to better code design? Test first development works like this.
.....

Developer is designing the application's API and internal implementation by discovering how client code actually must use the application instead of by guessing at how a client might use the application. This shift in perspective leads to extremely concise and efficient designs. It also helps focus the developer on the exact task at hand,making it less likely the developer will stray into writing nice-to-have's or overly-engineered,future-proof code that may never be needed.


原文在http://java.about.com/b/a/117719.htm

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读