refactoring - Concepts
Explore concepts tagged with "refactoring"
Total concepts: 6
Concepts
- Guard Clauses - A coding technique where a function checks for special or invalid cases at the very top and exits early, so the main logic doesn't end up buried in nested conditionals.
- Make the Change Easy, Then Make the Easy Change - Kent Beck's advice for changing code: first restructure the code so the change becomes simple, then make that simple change.
- Legacy Code - Inherited code that is difficult to change safely due to lack of tests, documentation, or understanding.
- Code Smell - Surface-level indicators in source code that suggest deeper problems in the design or implementation.
- Parallel Change - A technique to make a breaking change safely in three steps: expand the interface to support old and new, migrate all clients, then contract by removing the old.
- Primitive Obsession - A code smell where primitive types like strings, integers and booleans represent domain concepts that deserve their own small types.
← Back to all concepts