Slack
- Deep dive
- Engineering practice
- Performance
- Migrations & rewrites
When a rewrite isn’t: rebuilding Slack on the desktop
Answers How do you rewrite an app without stopping to rewrite it?
Slack’s desktop client, built in 2012 with jQuery and manual DOM updates, loaded every workspace in its own Electron process. Slack rebuilt it in React inside the running product, using strict legacy-interop rules so…
- The problem
- Slack’s desktop app updated the DOM by hand, loaded everything eagerly and ran one Electron process per workspace.
- What they did
- A new React codebase grew inside the old app, kept apart by strict legacy-interop rules.
- The result
- A rebuilt desktop app that runs every workspace in one process, shipped without a big-bang rewrite.
Why read it How to rewrite a large app piece by piece instead of starting over.