So you "want" to maintain a Python legacy code base?
While many programmers will agree that implementing new Software is the most entertaining part of our jobs, the truth is that the vast majority of developers spend a great amount of time performing maintenance, which in an world that praises innovation 'is a dirty job that somebody's gotta do'. In this talk I will describe a series of techniques and Python tools that have proven useful for taking over a legacy code base and getting it move forward, all within a well defined process:
1. Understand. Hold your horses! Don't touch that code yet, even it you really want to. Understand the spirit of your project, its architecture. Ask around, create personas, poll users, document the product.
2. Get yourself a safety net. Create lots of unit tests, pytest or nose are your friends.
3. Enhance. Start with small improvements, check and beautify your code with tools such as flake8, pep8 and pylint, perform code reviews.
César Cardenas Desales
César always enjoys a good programming riddle. He works mostly with Python, but have done unspeakable things in Java, Perl and PHP.
He's been doing Python for over a decade in projects that are covering the whole development stack, and speaks Spanish, English and German.
He's working for Zurich based Webrepublic AG, the leading Swiss digital marketing agency. He's co-organizer of the Swiss Python Summit and the Zurich Python User Group.
コメント