software problem, which is degraded mainly relates to projects which forgets that we live in a world of changing requirements, and our task is to create software that will be managed to survive these changes.
- stiffness (rigidity English) - the structure of the project means that the introduction of even the smallest change makes a number of other changes that we forced to implement in modules subsidiaries. What's more, the more we try to make changes, the stiffness of the project grows and the more difficult to estimate the time required even the simplest changes.
- sensitivity (English Fragility ) - as in the case of stiffness, the problem of small change that this time the cause unexpected faults. Similarly, any attempt to make corrections in such a project makes the situation worse, bringing the project to the inevitable degradation.
- inflexibility (English immobility ) - a feature of software that due to the functionality of its components could be used in other projects - not because it involves very high risk, such as the lack of independent modules. This constitutes a denial of the concept of software reusability .
- Failure to reality (English Viscosity) - where there is more than one solution to the problem, right solution, ie, in accordance with the specifications and design are difficult. Easier for us to use other, sometimes the wrong solution, because it was not prepared for the mechanism, providing even a minimal change in functionality. The problem may also affect the environment in which the mismatch between the reality is manifested, for example, a long period of waiting for recompilation difficult cooperation with external software (SVN , bug & issue tracker etc...)
- Excessive complexity (English needless complexity ) - the problem arises when an apparently legitimate operation, consisting in the anticipation of future functionality, getting unnecessarily complicate the project, as mentioned functionality is never shown, and the introduction of simple changes require modifications to the code, which is not used. The project reaches a significant size unnecessarily and need more time to understand what it actually does.
- Unnecessary repetition (English needless repetition ) - writing redundant code that pasting, because it has a slightly modified functionality. In such cases, we should always look for another solution (overload methods, application interfaces, classes, etc..) Instead of copying the code that works in a similar or identical way!
- Opacity (called opacity ) - is writing incomprehensible code. Unreadable code can be caused by too much complexity (combining multiple operators in one statement), the lack of a logical naming convention (Refactoring), ignorance of software architecture ( Domain-Driven Development - DDD , Command and Query Responsibility Segregation - CQRS), etc.. In assessing the clarity of your code, you should ask for such an assessment of another programmer.
- single responsibility principle (called Single Responsibility Principle - SRP).
No class can not be modified with more than one reason. - Open-Closed Principle (English Open / Closed Principle - OCP).
software components (classes, modules, functions, etc.) should be open for extension, but closed for modification. - Lisková substitution principle (called Lisková Substitution Principle - LSP).
must be capable of replacing the basic types of subtypes. - reversal principle according (English Dependency Inversion Principle- - DIP).
A. High level modules should not depend on low-level modules. Both groups of modules should depend on abstractions.
B. Abstractions should not depend on specific solutions. It's the details should depend on abstractions. - principle of segregation of interfaces (called Interface Segregation Principle - ISP).
client should not be forced to, depending on the methods, which are not used.
0 comments:
Post a Comment