How the Medium iOS team works effectively with legacy code
The Medium iOS team effectively manages legacy code using structured techniques, avoiding complete rewrites, and embracing incremental improvements.
MAIN POINTS
- The Medium iOS codebase retains code from 2013-2014, emphasizing incremental improvements over complete rewrites.
- Techniques like "Sprouts" and "Preserve signatures" help integrate new features without disrupting legacy code.
- Embracing iOS's native support, such as for Dark mode, reduces maintenance and desync issues.
TAKEAWAYS
- Incremental changes and understanding legacy code are preferred over full rewrites to avoid sunk cost fallacy.
- Using structured techniques and modularization improves code maintainability and team productivity.
- Detailed understanding and strategic refactoring can lead to better design and fewer bugs over time.