Code refactoring: a Python example
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 un...
Main Author: | |
---|---|
Format: | Article |
Language: | English |
Published: |
Warsaw School of Computer Science
2022-12-01
|
Series: | Zeszyty Naukowe Warszawskiej Wyższej Szkoły Informatyki |
Online Access: | https://zeszyty-naukowe.wwsi.edu.pl/zeszyty/zeszyt27/Ewa_Figielska_nr_27.pdf |
Summary: | 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. |
---|---|
ISSN: | 1896-396X 2082-8349 |