Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Code Refactoring

Code refactoring covers applying transformations to a codebase: renaming symbols, reorganizing structure, rewriting patterns. The challenge is doing this correctly and safely, without leaving the code in a malformed state.

This is one of the core pain points that motivated Loupe. AI reaches for grep and sed, which is imprecise and error-prone. Proper refactoring requires understanding the code structurally, not just textually.