Автор: Gabor Szabo (szabgab) из Israel.pm Дата: суббота, 12 мая 2012 г. 14:20
Длительность: 20 минут Целевая аудитория: Любой Язык: English Теги: improvement legacy quality refactoring
Code refactoring is "disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior". It is needed to ensure your code remains readable while growing in size and scope.
It is needed if you have some old code base that needs improvement and after every period of intense development when you "did not have the time to properly design your code".
There are several patterns in refactoring, some of them you might already practice without knowing the name.
The most obvious is when you use a variable $x and suddenly you realize it could have a more descriptive name.
If you change all the occurances of $x to this better name, without changing anything else in the code, that's already refactoring.
We will see several patterns for refactoring Perl code. We see examples doing them manually and we'll try to automate them as well. Собираются посетить:
|
Место проведения
Конференц-зал «Панорама»,
Киев, ул. Шолуденко 3, «Cubic Center», 6 этаж.
Спонсоры
Перелет
Воспользуйтесь нашим поиском и купите авиабилет на сайте eviterra.com.
Используйте тег #yr2012 при упоминании YAPC::Russia & Perl Mova
|