Refactoring Legacy Code

Posted on July 9, 2024 • 1 min read • 114 words
Share via
Legacy code can be a beast. Fragile, complex, and often lacking the necessary tests to ensure changes don’t introduce defects.
Refactoring Legacy Code
Photo by David Clode  on Unsplash 

Refactoring Legacy Code  

Legacy code can be a beast: fragile, complex, and often lacking the necessary tests to ensure changes don’t introduce defects. But fear not! There are techniques you can use to effectively work with and extend it in a safe and effective manner.

We will delve into:

  • Managing and improving legacy code
  • Utilizing Test-Driven Development (TDD) effectively
  • Applying the Strangler Fig Pattern to incrementally refactor code without breaking existing functionality

Learning Outcomes  

  • Understand the concepts of the Strangler Fig Pattern
  • Use Interfaces and Dependency Injection to isolate legacy code to be changed
  • Learn the benefits for using the Strangler Fig Pattern as opposed to an application rewrite

Presentation Dates  

DateLocationRecording Link
2024-07-09Tek Caffe YouTube 

Resources  

Slide Deck 

Bad Elevator  code base for practice (Java)
Llewellyn Falco’s Youtube talk  on referenced in the Tek Caffe video

Follow me

For thoughts on scaling high performing teams