
Seams and strangler fig patterns

Working Effectively with Legacy Code and AI Coding Assistant - Michael Feathers
Topic 7 of 22
Published Oct 14, 2024 · Clip 20:04–22:49 (2:45)
Michael defines a seam as a place in code where behavior can be replaced without drastic changes—like a seam on a shirt, e.g., a virtual method that can be overridden to bypass I/O in tests. He admits he nearly cut the chapter, thinking the idea too peculiar. He then contrasts seams with the strangler fig strategy, explaining strangler fig is parallel replacement—building new alongside old, like the seven-mile bridge in Florida—and notes you must find seams to create diversion points.