Original title:
Refaktorizace editoru stromů TrEd
Translated title:
Refaktorizace editoru stromů TrEd
Authors:
Fabian, Peter ; Žabokrtský, Zdeněk (advisor) ; Kruliš, Martin (referee) Document type: Master’s theses
Year:
2011
Language:
eng Abstract:
[eng][cze] Title: Refactoring tree editor TrEd Author: Peter Fabian Department: Institute of Formal and Applied Linguistics Supervisor: doc. Ing. Zdenek Zabokrtsky, Ph.D., Institute of Formal and Applied Linguistics Abstract: The main goal of the thesis was to refactor tree editor TrEd, improve its modularity, maintainability and make its further development less difficult. Static and dynamic analysis of TrEd have been performed in order to help us find acrid spots in the source code. More than 230 subroutines and data structures have been moved between packages, 50 new packages and a test suite with more than 1,300 tests have been created. A new coding style have been chosen for further development and most severe violations of this standard have been fixed. After the changes done on the source code, it have been analyzed again and the results have been compared with the previous state. Keywords: Tree Editor TrEd, Perl, code refactoring, code analysisNázev práce: Refaktorizace editoru stromů TrEd Autor: Peter Fabian Katedra: Útav formální a aplikované lingvistiky Vedoucí diplomové práce: doc. Ing. Zdeněk Žabokrtský, Ph.D., Útav formální a aplikované lingvistiky Abstrakt: Cílem práce bylo refaktorizovat editor stromů TrEd, zlepšit tím jeho modularitu, usnadnit údržbu a další vývoj aplikace. Důraz byl také kladen na zachování rychlosti programu. Zdrojový kód TrEdu byl prozkoumán metodami statické a dynamické analýzy, které pomohly identifikovat problémová místa. Bylo vytvořeno 50 nových modulů a řesunuto značné množství kódu. Byla také vytvořena sada testů, zvolena pravidla pro psaní nového kódu a sepsána dokumentace části stávajícího kódu. Kód byl po refaktorizaci opětovně podroben kvalitativní i kvantitativní analýze a její výsledky byly porovnány se stavem před refaktorizací. Klíčová slova: Editor stromů TrEd, Perl, refaktorizace, analýza kódu
Keywords:
code refactoring; tree editor; editor stromů; refaktorizace kódu
Institution: Charles University Faculties (theses)
(web)
Document availability information: Available in the Charles University Digital Repository. Original record: http://hdl.handle.net/20.500.11956/49621