Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Switching off legacy code using one Symfony com...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Loulier Guillaume
November 07, 2023
Programming
1
160
Switching off legacy code using one Symfony command at a time
Loulier Guillaume
November 07, 2023
Tweet
Share
More Decks by Loulier Guillaume
See All by Loulier Guillaume
La recherche sémantique à l'ère de l'IA, mirage ou miracle ?
guikingone
0
11
Demandez et votre application répondra, la recherche sémantique avec PHP et Meilisearch
guikingone
1
110
Building a semantic search experience using PHP and Meilisearch
guikingone
0
210
Symfony UX et le frontend
guikingone
1
87
K6, stresser son application en douceur
guikingone
1
85
Need to search through your data? Heard about Meilisearch?
guikingone
1
260
Meilisearch
guikingone
1
150
SQLite en production ? Et si vous réévaluiez vos options ?
guikingone
1
1.1k
Dagger, la CI, autrement
guikingone
1
290
Other Decks in Programming
See All in Programming
2025年の活動の振り返り
hideg
0
100
並行開発のためのコードレビュー
miyukiw
2
1.7k
CSC307 Lecture 07
javiergs
PRO
1
560
CSC307 Lecture 05
javiergs
PRO
0
500
ぼくの開発環境2026
yuzneri
1
270
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
150
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1.1k
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
250
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
260
Event Storming
hschwentner
3
1.3k
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
170
今から始めるClaude Code超入門
448jp
8
9.3k
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
KATA
mclloyd
PRO
34
15k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.4k
The Limits of Empathy - UXLibs8
cassininazir
1
230
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Designing for humans not robots
tammielis
254
26k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
210
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
88
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Transcript
Switching off legacy code using one Symfony command at a
time
Greetings
Hellcome Guillaume Loulier / @Guikingone Lead developer @SensioLabs Works mainly
with PHP and Rust Sometimes, I break things, especially legacy ones (and I like that)
Summary 01 - Legacy code is fun 02 - Migrating,
a far far away dream 04 - Symfony to the rescue 05 - Wrapping up 01
Legacy code is fun
Well, it should
Diving into the joke Refu*toring - The process of taking
a well-designed piece of code and, through a series of small, reversible changes, making it completely unmaintainable by anyone except yourself. Jason Gorman
Let the fun begin A legacy code is just an
abandoned one that generate revenues Maintaining legacy code should be easy At least, until it breaks Never needed to migrate PHP 5 code?
Dealing with technical debt Technical debt is ambiguous Yesterday code
is already outdated, sorry Need to migrate it? Bon chance
Keep dreamin’
I made a dream
Time for a wishlist Tracking, being aware of changes, updating
and deleting A new interface? For which use case? What about this method arguments type? Code spread across repositories?
Sadly What about using a dedicated channel? Or using trigger_error?
Or tools like Sentry, OpenTelemetry and many more? What if we’re in a special architecture?
Symfony?
Well…
The full experience Symfony brings a lot of components Could
we bring them together to help us? Look at Rector, PHPStan and more! What if we could “track & switch off” files?
Time to “Switchoff” Built on top of Symfony components and
nikic/PHP-Parser (chief kiss) Attributes for the win! Analyze, check, switch off, repeat Could be used via the CLI / CI
Want a demo?
What’s next?
To sum it up Handling migration is hard, not to
say boring Symfony could ease the process but lack of tools Relying on a framework is a recipe for failure Each project has its own rules / flaws
What about switchoff? Not fully stable (for now) A Symfony
bundle? (Already planned) An HTML dashboard What about a PHPStan / Rector bridge?
Wrapping up