Throughout the semester, your team has been developing a software project. As a project grows, code that worked well during the early stages of development may become harder to read, test, modify, or maintain.
For this assignment, your team will examine your semester project codebase and apply Clean Code and refactoring concepts to improve its quality.
Do not create a separate program for this assignment. All analysis, examples, and refactoring must come from your team's current semester project.
Your goal is to improve the internal quality of your software without unnecessarily changing its intended behavior or features.
Your team will conduct a short refactoring sprint on your semester project.
This option most closely resembles a professional development workflow. Your team will identify technical debt, prioritize improvements, perform refactoring, review each other's changes, and verify that the software continues to function correctly.
Step 1: Conduct a Code Review
As a team, review your current team semester project and identify areas that would benefit from refactoring.
Create at least five potential refactoring tickets. In each ticket, identify the which part of the code has the problem, the Code Smell, and the priority.
Step 2: Select Three Tickets
Choose at least three tickets to complete during your refactoring sprint.
Prioritize changes that will meaningfully improve the quality of your team semester project.
Avoid making superficial changes simply to satisfy the assignment.
For example, changing one variable from x to value is unlikely to represent a substantial refactoring ticket by itself.
Step 3: Complete Each Refactoring Ticket
Each completed ticket must contain the following sections.
Ticket R-XX: Refactoring Title
Location in Project:
Identify the file, class, component, or module.
Problem:
Describe the problem with the existing code.
Clean Code Concept:
Identify the principle or technique being applied.
Old Code
// Include the actual code from your semester project
New Code
// Include your team's refactored version
Why We Refactored It
Explain:
What problem existed in the original code? Why did your team select this area? What did you change? Which Clean Code principle did you apply? Why is the new version better? Reviewer Comments
Consider:
Is the new code easier to understand? Does it reduce unnecessary complexity? Does it introduce any new problems? Is there an even simpler solution? Testing/Verification
Describe how the team verified the refactoring.
Examples include:
Existing unit tests New unit tests Integration tests Manual testing Before-and-after output comparison
Turn in |
Turn in links to the 5 tickets identified and which 3 you decided to add to your sprint to fix. Total: 50 points