Carousell Oct 22, 2021

Browse Page Refactoring on Android

Article Summary

Jintin from Carousell reveals how a 3,000+ line Presenter became their team's productivity nightmare. Their solution? A strategic mix of refactoring AND rewriting that didn't require months of downtime.

The Carousell Android team faced a classic tech debt crisis: their Browse page had become a monolithic single Activity with over 10 view types, making every change risky and slow. Instead of choosing between a risky full rewrite or painful incremental refactoring, they took a hybrid approach that delivered immediate wins.

Key Takeaways

Critical Insight

By splitting large components into smaller pieces first, then evaluating each independently, the team reduced complexity while keeping the business moving forward.

The article includes specific open source libraries and code patterns that made their grid layout span size calculations dramatically simpler.

Recent from Carousell

Related Articles