A frontend developer shares their experience refactoring a startup's Flask-based web application over 5 months. The project involved assessing a messy codebase with 76 average requests per page, extracting inline JavaScript and styles, rewriting templates from scratch, and reducing page weight from 6MB to 311KB. The author emphasizes the importance of proper architecture, documentation, and the challenges of paying off technical debt in fast-moving startup environments.
Sort: