Talk in English - US at php[tek] 2024
View Slides: https://wkdb.yt/zombie
Short URL: https://joind.in/talk/3627e
(QR-Code (opens in new window))
Dead and outdated code is a stumbling block to upgrading, refactoring, and maintaining any software project, and at worse could become a security vulnerability. As a rule, we want to remove code and dependencies that just don’t belong in the code base anymore; however, it’s not always clear if and when dead code is really dead. Removing “zombie” code can be disastrous if it is still being used in production. We’ll cover common ways to statically identify dead code, and the accompanying pitfalls. We’ll then cover creating and using code tombstones in our project to definitively identify the living dead. Finally, we’ll discuss some best practices to avoid having zombies in your code in the first place!
Comments
Comments are closed.
Great talk. We all know dead code is awful, but zombie code is worse. Andy gives us the run down on how to identify and deal with the undead and has even written a library that can help us track them down and hunt them to extinction.
Thanks for the talk! :)
Dead code is evil. Fun talk about adding code to sections of code that you think are dead in order to report that they are in fact alive. I was hoping for a bit more information about other available tools but the quick review of composer unused was nice.
First conference talk and it was really great! Fun and very informational.
Great talk, very informative and helpful. My only qualm was that your clock animation on of your slides puts the hour hands past the 1 before the minutes hand hit 12. 🤣
Fascinating! I will definitely be including this, as I feel there are many methods that I have written, that due to changes in requirements, are no longer used, or were replaced by methods elsewhere.
Good and useful talk! I really appreciated the starter Tombstone code.
Excellent way to start the conference. Thanks Andy!