Что есть
рефакторинг?
Refactoring
…is a disciplined
technique for restructuring an existing body of code, altering its
internal structure without changing its external behavior.
Its heart is a
series of small behavior preserving transformations. Each
transformation (called a “refactoring”) does little, but a
sequence of transformations can produce a significant restructuring.
Since each refactoring is small, it’s less likely to go wrong. The
system is kept fully working after each small refactoring, reducing
the chances that a system can get seriously broken during the
restructuring.
И Martin Fowler пророк
его. В частности, он сделал мегаполезняшку,
каталог разных случаев рефакторинга
I've put together
this catalog to help you find and explore the refactorings in the
source books. You can expand each refactoring to show the
problem/solution summary for the refactoring or you can navigate to
the refactoring's online page. This page also contains the sketch for
the refactoring and page references for the full description of the
refactoring in the source book. There is also a deep link into the
safari books online edition of the book, which is very handy if
you've purchased that edition
Отличное
средство для освежения памяти.
original post http://vasnake.blogspot.com/2015/04/refactoring.html
Комментариев нет:
Отправить комментарий