DPC2019: Refactoring Huge Legacy PHP Applications - From 100 hours to minutes - Tomáš Votruba

preview_player
Показать описание
"Refactoring Huge Legacy PHP Applications - From 100 hours to minutes by Tomáš Votruba

Before the composer, we downloaded packages manually, one by one. Now you run ""composer update symfony/symfony 4.2"" and you can jump from 3.0 to 4.2 in seconds.

But how do you fix BC breaks in your code? Manually, one change after another, file by file? That's a daunting and stereotype work.

In PHP there is AST (abstract syntax tree) tools, that can automate this upgrade. Write the rule once, apply it in 1000 classes in seconds.

I'll show you how working with legacy code can be fun again.

What you'll learn from this talk:

What is AST - abstract syntax tree
How to see your legacy application as structured code
How to transform these structures easily with AST
How to use instant upgrades and refactorings in your code since Monday

About Tomáš Votruba

Tomas loves PHP and connecting people, so he founded Czech & Slovak PHP Community Pehapkari in 2015, where all PHP developers can share their knowledge, chat on Slack or grab a beer.

His passion is open-source for lazy people - instant upgrades and coding standards. He takes care of Rector and EasyCodingStandard packages.

Рекомендации по теме
Комментарии
Автор

Man.. how much water have you drunk? 5L at least??

YankoBelov