日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

敏捷开发原则与实践(二)

發布時間:2025/7/25 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 敏捷开发原则与实践(二) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

In 1992, Jack Reeves wrote a seminal article in the C++ Journal entitled “What is Software Design?” In this article, Reeves argues that the design of a software system is documented primarily by its source code. 源碼就是設計。UML diagrams 也許能夠展示一部分設計,但它不是設計的全部。只有源碼才是設計。非常推薦這篇文章!!!

?

Design Smells – The Odors of Rotting Software

  • ? Rigidity – The system is hard to change because every change forces many other changes to other parts of the system. 僵化=難于修改
  • ? Fragility – Changes cause the system to break in places that have no conceptual relationship to the part that was changed. 脆弱=一改就亂
  • ? Immobility – It’s hard to disentangle the system into components that can be reused in other system. 難以提取獨立出來
  • ? Viscosity – Doing things right is harder than doing things wrong. 粘滯=做好事難。比如編譯時間太長,開發人員就會傾向于修改只需要部分編譯的代碼,即使這樣修改與設計沖突。
  • ? Needless Complexity – The design contains infrastructure that adds no direct benefit. 沒必要的復雜=過度設計。我們應該保持設計的flexible,而不是一開始就認為后續會有很多變化,從而把架構寫的很復雜。如何保持?看后面介紹的原則,以及測試驅動會驅動你的。
  • ? Needless Repetition – The design contains repeating structures that could be unified under a single abstraction. 重復=濫用粘貼
  • ? Opacity-It’s hard to read and understand. it does not express its intent well.晦澀=代碼難懂

?

What Stimulates the Software to Rot?

主要原因來至需求變化,而且經常要求快速實現需求,導致開發人員寫出各種違反原設計的代碼,慢慢的Smell就產生了。

然而,我們不能責怪需求的變化。If our designs are failing due the constant rain of changing requirements, it is our designs and practices that are at fault. We must somehow find a way to make our designs resilient to such changes and employ practices that protect them from rotting.

轉載于:https://www.cnblogs.com/ustbdavid/p/3415226.html

總結

以上是生活随笔為你收集整理的敏捷开发原则与实践(二)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。