[發問]Good Characteristics of a Design 之"High fan-in"與"Low-to-medium fan-out "

  • 5456
  • 0

High fan-in 與 Low-to-medium fan-out 的意義?

小的這幾天在看Code Complete 2, Chapter 5的時候,
介紹到了幾個好的軟體設計,應該要有哪些特性。

不過其中有兩點,看中文跟英文都還是似懂非懂,想提出來跟各位前輩請教一下,有沒有實際的例子可以說明。

1.High fan-in (中文好像翻做「高扇入」)
High fan-in refers to having a high number of classes that use a given class. High fan-in implies that a system has been designed to make good use of utility classes at the lower levels in the system.

是指設計好的class,應該被很多支class所使用到?

2.Low-to-medium fan-out (中文好像翻做「中低扇出」)
Low-to-medium fan-out means having a given class use a low-to-medium number of other classes. High fan-out (more than about seven) indicates that a class uses a large number of other classes and may therefore be overly complex. Researchers have found that the principle of low fan-out is beneficial whether you're considering the number of routines called from within a routine or from within a class (Card and Glass 1990; Basili, Briand, and Melo 1996).
是指一支class應該盡量避免使用到太多外部的class?

 

不知道在點部落問這樣的問題,會不會不適合,

很多技術的東西,其他高手跟大師應該都分享很多了,輪不到我在這班門弄斧...:P

所以想請教一些軟體開發設計上,該瞭解的issue...希望大大們不吝賜教...


blog 與課程更新內容,請前往新站位置:http://tdd.best/