Learn the basics of refactoring for agile software development. Explore refactoring techniques to simplify code, remove duplication, and build more reusable objects.
Overview
Syllabus
Introduction
- Refactoring for better code
- What you need to know
- What is refactoring?
- Test-driven development (TDD)
- Code kata
- Setting up the new code kata
- Setting up the TDD environment
- Refactoring: Rename Variable
- Micro-refactoring
- Refactoring: Inline Code
- Code kata: Continue solving the problem
- Refactoring: Extract Method
- Technical debt: Why it’s a problem
- Setting up the legacy code kata
- Methodology
- Start writing pin-down tests
- Complete writing pin-down tests
- Refactoring pin-down tests
- Refactoring: Change Signature
- Code coverage
- Branch coverage
- Refactoring: Extract Constant strings
- Refactoring: Extract Constant numbers
- Refactoring: Extract Variable/Extract Method
- Refactoring: Simplify Arithmetic
- Refactoring: Simplify Booleans
- Refactoring: Group-Related Logic
- Refactoring: Final steps
- Add new behavior to refactored code
- Next steps
Taught by
Richard Kasperowski