Refactoring for high-performance Agile Software Development. Refactoring for better code. Refactoring is about improving the quality of your code by simplifying your code. Simpler code enables agility, the ability to change your code quickly, to add new features, to meet people's ever changing needs.
I am using a test-driven development practice of writing tests first here. For a full understanding of what is it all about? And why is it important? Please read this article Test-Driven Development: Really, It's a Design Technique.
This repository hosts all 3 Java Magazine articles series source-code.
- Refactoring with New Code
- Defining refactoring
- Setting up a TDD environment
- Renaming variables
- Using the inline and extract method
- Stabilizing Legacy Code
- Pinning down legacy code
- Testing code and branch coverage
- Refactoring legacy code
- Simplifying math and Booleans
- Adding new behaviors to refactored code
The legacy code kata I used it here in these articles series is inspired from Gilded Rose Kata, written by Emily Bache.
- Refactoring Java, Part 1: Driving agile development with test-driven development.
- Refactoring Java, Part 2: Stabilizing your legacy code and technical debt.
- Refactoring Java, Part 3: Regaining business agility by simplifying legacy code.
Each article is divided into steps, and in each step, I have managed to have a git commit for each TDD red-green-blue change. So, when you navigate the commits, you can notice the differences, and the refactorings that has been done toward final Kata requirements.