PHP refactoring

Thesis title: Refaktoring v PHP
Author: Martišek, Jiří
Thesis type: Diplomová práce
Supervisor: Mittner, Jan
Opponents: Buchalcevová, Alena
Thesis language: Česky
Abstract:
Tato práce se zabývá návrhem metodiky refaktoringu webových aplikací v PHP. Hlavním cílem práce je navrhnout tuto metodiku a ukázat její praktickou aplikaci na reálném projektu. V první kapitole vymezuji cíle, omezení a očekávané přínosy práce. Ve druhé pak uvádím výsledky průzkumu existující literatury na podobná témata. Ve třetí kapitole pak komentuji přístup některých metodik vývoje softwaru k problematice refaktoringu. Ve čtvrté kapitole uvádím obecně známé pachy a přidávám další, obvyklé v PHP. Také si všímám specifik refaktoringu v PHP. V páté kapitole shrnuji požadavky na metodiku, předpoklady jejího použití, její principy a obecné vlastnosti. Dále uvádím doporučený postup refaktoringu webové aplikace, jehož jednotlivé části jsou okomentovány dále v kapitole. Jedná se především o způsob identifikace oblastí k refaktoringu, jejich prioritizace a následně praktik pro samotný refaktoring. V závěru uvádím tipy pro zavedení předkládané metodiky do praxe. V šesté kapitole ukazuji praktickou aplikaci metodiky na reálném projektu. Komentuji jednotlivé kroky provedené dle metodiky a následně postřehy získané při vlastním refaktoringu.
Keywords: refaktoring; kvalita kódu; PHP
Thesis title: PHP refactoring
Author: Martišek, Jiří
Thesis type: Diploma thesis
Supervisor: Mittner, Jan
Opponents: Buchalcevová, Alena
Thesis language: Česky
Abstract:
This thesis deals with a methodology for PHP web applications refactoring. The main objective is to propose such a methodology, and to apply it on a real project. The first chapter contains objectives, restrictions and contributions of the thesis. The research of the existing literature on similar topics follows in the second chapter. The third chapter comments on selected software development methodologies' approach to refactoring. The fourth chapter describes known code smells, and adds some new ones appearing particularly in PHP. Specifics of PHP refactoring are also described. The fifth chapter deals with the methodology proposal itself. It sums up requirements, deployment assumptions, the methodology principles and general characteristics. The next part contains the recommended procedure of PHP web applications refactoring with its parts commented farther on. These parts are mainly code smells identification techniques, prioritization and finally best practices. The chapter ends with this methodology deployment recommendations. The sixth chapter shows a practical usage of the proposed methodology when refactoring a real web application. The performed steps are explained in terms of the methodology. The chapter closes with observations gained during this refactoring.
Keywords: code quality; PHP; refactoring

Information about study

Study programme: Aplikovaná informatika/Informační systémy a technologie
Type of study programme: Magisterský studijní program
Assigned degree: Ing.
Institutions assigning academic degree: Vysoká škola ekonomická v Praze
Faculty: Faculty of Informatics and Statistics
Department: Department of Information Technologies

Information on submission and defense

Date of assignment: 9. 10. 2012
Date of submission: 9. 12. 2013
Date of defense: 10. 2. 2014
Identifier in the InSIS system: https://insis.vse.cz/zp/39545/podrobnosti

Files for download

    Last update: