Ch 21 - Without changing external behavior Applying...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style Chapter - 21 Test-Driven Development and Refactoring
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Chapter Objectives Introduce these two important development practices in context of case studies
Background image of page 2
Test-Driven Development Unit tests actually written Programmer satisfaction leading to more consistent test writing Clarification of detailed interface and behavior Provable, repeatable, automated verification Confidence to change things
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Refactoring Structured, disciplined method to rewrite or restructure existing code
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Without changing external behavior Applying transformation steps Re-executing tests each step Activities and Goals of Refactoring Remove duplicate code Improve clarity Make long methods shorter Remove hard-coded literal constants Code Stench Duplicate code Big method Class with many instance variables Class with lots of code Similar subclasses Little use of interfaces in design High coupling between many objects...
View Full Document

Page1 / 6

Ch 21 - Without changing external behavior Applying...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online