If we build software in tiny increments, when do we design?
![]() |
| Wax on, wax off Daniel-San |
Exactly, step by step. In each iteration, and according to the new requirements, design and system architecture should evolve just enough to fulfill all needs.
So when to improve our design? Simple... when it smells.
![]() |
| The stench... |
You know that the software is rotting when it starts to exhibit any of the following odors:
- Rigidity: a single change causes a cascade of subsequent changes in dependent modules.
- Fragility: a tendency of a program to break in many places when a single change is made.
- Immobility: it contains parts that could be useful in other systems, but the effort and risk involved with separating those parts from the original system are too great.
- Viscosity: it is difficult to do the right thing.
- Needless complexity: Overdesign, it contains elements that aren't currently useful (YAGNI).
- Needless Repetition: too much "Cut and paste".
- Opacity: a module difficult to understand.
So why software rots? We know that not only requirements will change (that's a fact) many times they are the most volatile elements on the project.
And how can we stop it? Well by using good old SOLID Principles! Each will have its own post :) Principles will help us eliminate these bad smells. however they aren't a perfume to be scattered all over the system!
As professional software developers we should keep design as good as it can be (and the code as clean as possible).
Let the
![]() |
| Choose your weapon! |



No comments:
Post a Comment