Preferencje help
Widoczny [Schowaj] Abstrakt
Liczba wyników

Znaleziono wyników: 3

Liczba wyników na stronie
first rewind previous Strona / 1 next fast forward last
Wyniki wyszukiwania
Wyszukiwano:
w słowach kluczowych:  refactoring
help Sortuj według:

help Ogranicz wyniki do:
first rewind previous Strona / 1 next fast forward last
1
Content available Code refactoring : a Python example
EN
In this paper, several refactoring techniques are shown, using an example in which the design of a program for solving a simple problem is gradually improved. Before introducing any change to the program, the drawbacks of its current version are discussed, bad code smells are identified, and some unit tests are provided. The source code is written in Python.
PL
w metodykach zwinnych jedną z technik poprawy jakości kodu jest jego refaktoryzacja. Jest to proces, wykorzystujący szereg technik, modyfikacji kodu bez zmiany jego funkcjonalności ukierunkowany na poprawę jego przejrzystości i zmniejszenie podatności na błędy. Poprawę kodu można mierzyć przy pomocy różnych metryk jakości kodu. w artykule przedstawiono analizę wpływu refaktoryzacji na statyczną jakość kodu na przykładzie open-sourcowego projektu Scuba. Jakość kodu została zmierzona w dwóch różnych punktach rozwoju oprogramowania – bezpośrednio przed i po refaktoryzacji kodu. Do pomiaru wykorzystano trzy najbardziej popularne zestawy metryk jakości kodu obiektowego i narzędzie Sonarqube. Badania wskazują jednoznacznie na istotną poprawę statycznej jakości kodu w wyniku refaktoringu.
EN
In agile methods, one of the techniques for improving code quality is refactoring. This is a process that employs a number of techniques, modifying the code without changing its functionality, aiming to improve its transparency and reduce vulnerability. You can measure the improvement of the code using different code quality metrics. The paper presents an analysis of the effect of refactoring on static code quality on the example of the open-source project Scuba. The quality of the code was measured at two different points of software development - right before and after refactoring the code. The three most popular sets of object code quality metrics and the Sonarqube tool were used for the measurement. The research clearly demonstrates the significant improvement of static code quality as a result of refactoring.
3
Content available remote Pattern-based Rewriting through Abstraction
EN
Model-based development relies on models in different phases for different purposes, with modelling patterns being used to document and gather knowledge about good practices in specific domains, to analyse the quality of existing designs, and to guide the construction and refactoring of models. Providing a formal basis for the use of patterns would also support their integration with existing approaches to model transformation. To this end, we turn to the commonly used, in this context, machinery of graph transformations and provide an algebraic-categorical formalization of modelling patterns, which can express variability and required/forbidden application contexts. This allows the definition of transformation rules having patterns in left and right-hand sides, which can be used to express refactorings towards patterns, change the use of one pattern by a different one, or switch between pattern variants. A key element in our proposal is the use of operations to abstract models into patterns, so that they can be manipulated by pattern rules, thus leading to a rewriting mechanism for classes of graphs described by patterns and not just individual graphs. The proposal is illustrated with examples in object-oriented software design patterns and enterprise architecture patterns, but can be applied to any other domain where patterns are used for modelling.
first rewind previous Strona / 1 next fast forward last
JavaScript jest wyłączony w Twojej przeglądarce internetowej. Włącz go, a następnie odśwież stronę, aby móc w pełni z niej korzystać.