Talk in English - UK at ScotlandPHP 2019
Track Name:
Track 2
View Video: https://www.youtube.com/watch?v=2yzRTQ5IeiE
View Slides: https://speakerdeck.com/maccath/legacy-code-testing-and-safe-refactoring-scotland-php-2019
Short URL: https://joind.in/talk/64622
(QR-Code (opens in new window))
The paradox: I can't test this code because it's legacy. I need to refractor the code to make it testable. How can I manage that, without breaking existing functionality? I'll need to write some tests, but... argh!
We've all been there! In this talk we'll look at safe ways to refactor and test 'untestable' code - without breaking any existing functionality. Promise!
Comments
Comments are closed.
Great talk from Katy with lots of practical notes
Loads of great examples and some good points made!
Great examples and way of leading the presentation. It was technical knowledge with artistic sprincles for me which make it really enjoyable.
Great talk with lots of specific examples
I relaly enjoyed this talk and teh code samples; very useful short examples of problems and how to get around them
I did feel that it wasn't quite on the money with the talk title; it was more a How To intro for phpUNIT and didn't really cover refactoring as such, or how to "refacator just enough" to enable testing.
The examples that were provided were brilliant, and oh so well named.. i'd just liked to have seen an example of a first step that removes any fear factor of going from spaghetti code to something testable. For me, I think that bit is missing and would be a very valuabe addition.