rain1024 / gVim-Pathogen

My Coding Life
http://rain1024.github.io/gVim-Pathogen
2 stars 0 forks source link

Design Smells #20

Open rain1024 opened 10 years ago

rain1024 commented 10 years ago

Rigidity (đông cứng)

Viscosity comes in two forms: viscosity of the software and viscosity of the environment. When faced with a change, developers usually find more than one way to make that change. Some of the ways preserve the design; others do not (i.e., they are hacks). When the design-preserving methods are more difficult to use than the hacks, the viscosity of the design is high.

Needless complexity (phức tạp không cần thiết)

A design smells of needless complexity when it contains elements that aren't currently useful.

Needless repetition (lặp không cần thiết)

Cut and paste may be useful text-editing operations, but they can be disastrous code-editing operations.

Opacity (tính mờ)

Opacity is the tendency of a module to be difficult to understand.

Reference

Martin, Robert C., and Micah Martin. Agile principles, patterns, and practices in C. Upper Saddle River, NJ: Prentice Hall, 2007. Print.