Refactoring is the practice of improving the code you write without changing how it functions. Get a brief primer on this practice and find out where you can learn even more.
- [Instructor] When you've inherited a project, … you'll find yourself surrounded by things … you want to change, … designs that you feel could be implemented more concisely, … algorithms which you feel could be more efficient, … chunks of code which should be made … more easier to understand. … These are just some of the valid reasons that you might have … for wanting to make changes to the project … without actually changing its behavior, … a practice that's more commonly referred to as refactoring. … The most important thing to remember when refactoring … is that the goal is to leave the behavior … exactly the same as you found it. … It can be very tempting … to start making structure and design changes … at the same time that you are introducing new behavior, … but these two practices should not be mixed. … Instead, either add the new behavior and then refactor … or refactor and then add the new behavior. … Do not attempt to do both at the same time … because, if you introduce a bug, …
AuthorM. Scott Ford
- Assessing the technical debt
- Creating and running a test suite
- Handling failing tests
- Updating dependencies and tools
- Paying down technical debt
- Remaining test driven
- Monitoring code quality
Skill Level Intermediate
Agile Software Development: Code Qualitywith M. Scott Ford1h 40m Intermediate
Agile Software Development: Refactoringwith Richard Kasperowski1h 31m Intermediate
1. Getting Started: Review the Technical Debt
2. Fence in the Technical Debt
3. Improve Your Tools
4. Pay Down Technical Debt
5. Keep Technical Debt at Bay
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.