#refactoring
Posts tagged with “refactoring”.
7 posts
DRY, KISS and YAGNI: Three Principles, One Goal
DRY, KISS and YAGNI are three heuristics for simpler code. Learn what each really means, how they conflict, and how to apply them sensibly.
Naming Conventions: How to Name Things in Code
Good names make code readable without comments. Learn the conventions for variables, functions, classes and files, and the habits that produce them.
Refactoring Basics: Improving Code Without Breaking It
Refactoring changes code structure without changing behaviour. Learn the core techniques, how to stay safe, and when to refactor.
The Strategy Pattern Explained With Practical Examples
The strategy pattern swaps algorithms at runtime behind a common interface. Learn how it works, when it beats conditionals, and its trade-offs.
Test-Driven Development: A Practical Introduction
TDD is a short red-green-refactor cycle that shapes design as much as it verifies code. Learn the loop, the benefits, and the common objections.
Writing Clean Functions: Small, Focused, Testable
Clean functions do one thing, have clear names, and few parameters. Learn the rules, the trade-offs, and how to refactor messy functions.
Technical Debt: How to Talk About It and Pay It Down
Technical debt in practice: what counts as debt, how to translate it into delivery risk non-engineers understand, and how to pay it down without a rewrite.