Refactoring
ELI5 — The Vibe Check
Refactoring is improving the internal structure of code WITHOUT changing what it does from the outside. No new features, no bug fixes — just making the code cleaner, clearer, and easier to maintain. Like reorganizing your closet: same clothes, easier to find things.
Real Talk
Refactoring is the process of restructuring existing code without changing its external behavior. Techniques include: Extract Method, Extract Class, Rename Variable, Replace Conditional with Polymorphism, and Move Feature. Should be supported by tests to verify behavior is preserved throughout.
When You'll Hear This
"Let's refactor this before adding the new feature." / "Refactoring should be a constant activity, not a one-time project."
Related Terms
Code Smell
Code that works but feels... wrong. Like when food smells slightly off — it might be fine, but something isn't right.
DRY (Don't Repeat Yourself)
If you find yourself copy-pasting the same code in multiple places, STOP. Make it a reusable function instead.
SOLID (SOLID)
SOLID is five rules for writing code that doesn't turn into a nightmare over time. Each letter stands for a different rule.
Technical Debt
Technical debt is the coding equivalent of putting things on a credit card.