Journal "Software Engineering"
a journal on theoretical and applied science and technology
ISSN 2220-3397

Issue N7 2022 year

DOI: 10.17587/prin.13.311-321
Antipattern Practice for Essence Practice Library
D. O. Zmeev, denis.zmeev@accounts.tsu.ru, O. A. Zmeev, ozmeyev@gmail.com, L. S. Ivanova, lidiya.ivanova@persona.tsu.ru, Tomsk State University, Tomsk, 634050, Russian Federation
Corresponding author: Lidiya S. Ivanova, Assistant, Tomsk State University, 634050, Tomsk, Russian Federation, E-mail: lidiya.ivanova@persona.tsu.ru
Received on April 03, 2022
Accepted on May 26, 2022

The Essence graphical representation language allows to describe various project management practices in software development. At the moment, the Practice Library describes the most popular development methodologies, but work with various risks, such as code smells or antipatterns, which may be cause of future problems, is not represented. This article presents an extension for the Practice Library of the Essence language in the form of a practice for working with antipatterns. To represent antipatterns in the system, the Antipattern subalpha, its states and checkpoints are proposed. Antipatterns states and checkpoints: 1. Detected: о Signs of poor-quality design or implementation of the Software System have been found. о The boundaries of the low-quality area in the Software System have been defined. о Work Products associated with the inferior part of the Software System have been defined. 2. Identified: о The Software System Elements included in the Antipattern have been determined. о The type of antipattern has been determined. о Dependencies of the Software System on the antipattern elements have been determined. о The impact of the antipattern on the Software System has been estimated. 3. Refactoring Method Defined: о Possible options for refactoring have been identified. о The cost of the refactoring options has been assessed. о The most suitable refactoring method has been selected. 4. Fixed: о The Software System elements included in the antipattern are completely covered by tests. о The antipattern has been refactored. о Tests confirm that the Software System remains operational. о The Work Products related to the changed part of the Software System have been updated. 5. Closed: о Tests, reviews or other appropriate activities have been undertaken to ensure that the antipattern has been corrected or shown not to actually be a fault or flaw. о The antipattern management has been finalized. о Technical debt has decreased. To record data about an antipattern, the work product Antipattern Report and its levels of details with checkpoints are proposed. Levels of details and checkpoints are: 1. Antipattern detected: о The components of the Software System included in the antipattern are defined. 2. Antipatterns properties are determined: о An antipattern type has been defined. 3. Antipattern influence determined: о The cost of antipattern fixing was estimated. о An assessment of possible losses associated with the presence of an antipattern was carried out. о The antipattern is recognized as mandatory for elimination. 4. Antipattern eliminated — optional: о Refactoring completed. о Testing showed the correct work of the components included in the antipattern. о Antipattern elimination activity completed. To analyze the architecture of the system, the Inspect Architecture activity is proposed. The Fix Architecture activity represents actions to fix architecture flaws. Code analysis is presented as a Review the Code activity, and correction of deficiencies found during the analysis is presented as a Refactor the Code activity. The influence of subalpha on the state of the Software System alpha is analyzed. Recommendations were given on the proposed activities. Information about activities is presented in the form of diagrams in the Essence language. The proposed practice allows to record information about the found flaws in the code, process them correctly and avoid problems with the project in the future. It is an example of working with entities that negatively affect the progress of the project.

Keywords: Antipattern, Code Review, Code Smell, Development, Essence, Practice, Practice Library, Project Management, Refactoring, SEMAT
pp. 311—321
For citation:
Zmeev D. O., Zmeev O. A., Ivanova L. S. Antipattern Practice for Essence Practice Library, Programmnaya Ingeneria, 2022, vol. 13, no. 7, pp. 311—321.